shrunk-constant.ll 329 B

123456789101112131415
  1. ; RUN: opt < %s -scalar-evolution -analyze \
  2. ; RUN: | grep "\--> (zext i4 {-7,+,-8}<%loop> to i32)"
  3. define fastcc void @foo() nounwind {
  4. entry:
  5. br label %loop
  6. loop:
  7. %i = phi i32 [ 0, %entry ], [ %t2, %loop ]
  8. %t0 = add i32 %i, 9
  9. %t1 = and i32 %t0, 9
  10. store i32 %t1, i32* null
  11. %t2 = add i32 %i, 8
  12. br label %loop
  13. }