Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / TailCallElim / dont-tce-tail-marked-call.ll
1 ; RUN: llvm-upgrade < %s | llvm-as | opt -tailcallelim | llvm-dis | grep 'call int %foo'
2
3 declare void %bar(int*)
4 int %foo(uint %N) {
5   %A = alloca int, uint %N             ;; Should stay in entry block because of 'tail' marker
6   store int 17, int* %A
7   call void %bar(int* %A)
8
9   %X = tail call int %foo(uint %N)  ;; Cannot -tailcallelim this without increasing stack usage!
10   ret int %X
11 }