repo.or.cz
/
llvm
/
avr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Forbid arrays of function-type and structures with function-typed fields.
[llvm/avr.git]
/
test
/
Transforms
/
SCCP
/
ipsccp-basic.ll
blob
7f0772e53d930822a330414d959f4eec86c1cd0a
1
; RUN: opt < %s -ipsccp -S | \
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