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
another random update
[llvm/avr.git]
/
test
/
Transforms
/
Inline
/
inline_constprop.ll
blob
3066d45ff4b1b08e188528f077f1ea6ded93d686
1
; RUN: opt %s -inline -S | not grep callee
2
; RUN: opt %s -inline -S | not grep div
3
4
5
define internal i32 @callee(i32 %A, i32 %B) {
6
%C = sdiv i32 %A, %B ; <i32> [#uses=1]
7
ret i32 %C
8
}
9
10
define i32 @test() {
11
%X = call i32 @callee( i32 10, i32 3 ) ; <i32> [#uses=1]
12
ret i32 %X
13
}
14