1 ; RUN: opt < %s -tailcallelim -S | \ 2 ; RUN: grep "call i32 @foo" 3 4 declare void @bar(i32*) 5 6 define i32 @foo(i32 %N) { 7 %A = alloca i32, i32 %N ; <i32*> [#uses=2] 8 store i32 17, i32* %A 9 call void @bar( i32* %A ) 10 %X = tail call i32 @foo( i32 %N ) ; <i32> [#uses=1] 11 ret i32 %X 12 } 13 14