projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
New testcases for PR615
[oota-llvm.git]
/
test
/
Transforms
/
TailCallElim
/
move_alloca_for_tail_call.ll
1
; RUN: llvm-as < %s | opt -tailcallelim | llvm-dis | %prcontext alloca 1 | grep 'int %foo'
2
3
declare void %bar(int*)
4
int %foo() {
5
%A = alloca int ;; 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()
10
ret int %X
11
}