projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add incoming value from header only if phi node has any use inside the loop.
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
srem.ll
1
; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep srem
2
3
define i64 @foo(i64 %x1, i64 %y2) {
4
%r = sdiv i64 %x1, %y2
5
%r7 = mul i64 %r, %y2
6
%r8 = sub i64 %x1, %r7
7
ret i64 %r8
8
}