sabre brings to my attention that the 'tr' suffix is also obsolete
[oota-llvm.git] / test / Transforms / TailCallElim / move_alloca_for_tail_call.ll
1 ; RUN: llvm-as < %s | opt -tailcallelim | llvm-dis | \
2 ; RUN:    %prcontext alloca 1 | grep {i32 @foo}
3
4 declare void @bar(i32*)
5
6 define i32 @foo() {
7         %A = alloca i32         ; <i32*> [#uses=2]
8         store i32 17, i32* %A
9         call void @bar( i32* %A )
10         %X = tail call i32 @foo( )              ; <i32> [#uses=1]
11         ret i32 %X
12 }
13