repo.or.cz
/
llvm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
fix a globalopt crash on two Adobe-C++ testcases that the recent
[llvm.git]
/
test
/
Transforms
/
TailCallElim
/
move_alloca_for_tail_call.ll
blob
a556ddb6eb1d8bcfaeade25b336b8ee1922486a4
1
; RUN: opt -tailcallelim %s -S | FileCheck %s
2
; PR615
3
4
declare void @bar(i32*)
5
6
define i32 @foo() {
7
; CHECK: i32 @foo()
8
; CHECK-NEXT: alloca
9
%A = alloca i32 ; <i32*> [#uses=2]
10
store i32 17, i32* %A
11
call void @bar( i32* %A )
12
%X = tail call i32 @foo( ) ; <i32> [#uses=1]
13
ret i32 %X
14
}
15