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
/
IPConstantProp
/
recursion.ll
blob
b25a6c081811104e6b8a6891915f52cd399e030b
1
; RUN: opt < %s -ipconstprop -deadargelim -S | not grep %X
2
define internal i32 @foo(i32 %X) {
3
%Y = call i32 @foo( i32 %X ) ; <i32> [#uses=1]
4
%Z = add i32 %Y, 1 ; <i32> [#uses=1]
5
ret i32 %Z
6
}
7
8
define void @bar() {
9
call i32 @foo( i32 17 ) ; <i32>:1 [#uses=0]
10
ret void
11
}
12