projects
/
oota-llvm.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fold (-x + -y) -> -(x+y) which promotes better association, fixing
[oota-llvm.git]
/
test
/
Transforms
/
InstCombine
/
2004-08-09-RemInfLoop.llx
1
; RUN: llvm-upgrade < %s | llvm-as | opt -instcombine
2
3
; This testcase should not send the instcombiner into an infinite loop!
4
5
int %test(int %X) {
6
%Y = rem int %X, 0
7
ret int %Y
8
}