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
Revert "[InstCombine] Support gep nuw in icmp folds" (#118698)
[llvm-project.git]
/
llvm
/
test
/
Transforms
/
IndVarSimplify
/
sink-trapping.ll
blob
d2478be5a8fcc180a34985cdc65e2d763f5ea71c
1
; RUN: opt < %s -passes=indvars -S | FileCheck %s
2
3
declare i1 @b()
4
5
define i32 @a(i32 %x) nounwind {
6
for.body.preheader:
7
%y = sdiv i32 10, %x
8
br label %for.body
9
10
for.body:
11
%cmp = call i1 @b()
12
br i1 %cmp, label %for.body, label %for.end.loopexit
13
14
for.end.loopexit:
15
ret i32 %y
16
}
17
; CHECK: for.end.loopexit:
18
; CHECK: sdiv
19
; CHECK: ret