repo.or.cz
/
llvm
/
stm8.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Heuristic: If the number of operands in the alias are more than the number of
[llvm/stm8.git]
/
test
/
Transforms
/
Inline
/
inline_constprop.ll
blob
537c69b305cbd0f9cc2dbec1046fbb251e47e414
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