• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: opt < %s -scalar-evolution -analyze -enable-new-pm=0 | FileCheck %s
2; RUN: opt < %s -passes='print<scalar-evolution>' 2>&1 | FileCheck %s
3
4; CHECK: -->  (1 + (zext i4 {-8,+,-8}<%loop> to i32))<nuw><nsw>
5
6define fastcc void @foo() nounwind {
7entry:
8	br label %loop
9
10loop:
11	%i = phi i32 [ 0, %entry ], [ %t2, %loop ]
12	%t0 = add i32 %i, 9
13	%t1 = and i32 %t0, 9
14        store i32 %t1, i32* null
15	%t2 = add i32 %i, 8
16	br label %loop
17}
18