repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
In some rare cases, the register allocator can spill registers but end up not utilizi...
[llvm/msp430.git]
/
test
/
Transforms
/
SCCP
/
ipsccp-basic.ll
blob
1449ea70c39babdaf68285e1506fb33e053c64a6
1
; RUN: llvm-as < %s | opt -ipsccp | llvm-dis | \
2
; RUN: grep -v {ret i32 17} | grep -v {ret i32 undef} | not grep ret
3
4
define internal i32 @bar(i32 %A) {
5
%X = add i32 1, 2 ; <i32> [#uses=0]
6
ret i32 %A
7
}
8
9
define i32 @foo() {
10
%X = call i32 @bar( i32 17 ) ; <i32> [#uses=1]
11
ret i32 %X
12
}
13