repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[DAGCombiner] Add target hook function to decide folding (mul (add x, c1), c2)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
InstCombine
/
2004-08-09-RemInfLoop.ll
blob
f3e5d77c0c806c1e0e8cca014f644fd7638d01db
1
; RUN: opt < %s -instcombine
2
3
; This testcase should not send the instcombiner into an infinite loop!
4
5
define i32 @test(i32 %X) {
6
%Y = srem i32 %X, 0 ; <i32> [#uses=1]
7
ret i32 %Y
8
}
9