repo.or.cz
/
llvm-complete.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[InstCombine] Signed saturation tests. NFC
[llvm-complete.git]
/
test
/
Transforms
/
IndVarSimplify
/
shrunk-constant.ll
blob
ba20b2c6a512e33dd56299cf02f01c69a2f27c4c
1
; RUN: opt < %s -scalar-evolution -analyze | FileCheck %s
2
3
; CHECK: --> (1 + (zext i4 {-8,+,-8}<%loop> to i32))<nuw><nsw>
4
5
define fastcc void @foo() nounwind {
6
entry:
7
br label %loop
8
9
loop:
10
%i = phi i32 [ 0, %entry ], [ %t2, %loop ]
11
%t0 = add i32 %i, 9
12
%t1 = and i32 %t0, 9
13
store i32 %t1, i32* null
14
%t2 = add i32 %i, 8
15
br label %loop
16
}