|
3 | 3 | ; RUN: -scalar-evolution-classify-expressions=0 2>&1 | FileCheck %s |
4 | 4 |
|
5 | 5 | define void @implied1(i32 %n) { |
6 | | -; Prove that (n > 1) ===> (n - 1 > 0). |
| 6 | +; Prove that (n s> 1) ===> (n - 1 s> 0). |
7 | 7 | ; CHECK-LABEL: 'implied1' |
8 | 8 | ; CHECK-NEXT: Determining loop execution counts for: @implied1 |
9 | 9 | ; CHECK-NEXT: Loop %header: backedge-taken count is (-2 + %n) |
|
28 | 28 | } |
29 | 29 |
|
30 | 30 | define void @implied1_neg(i32 %n) { |
31 | | -; Prove that (n > 0) =\=> (n - 1 > 0). |
| 31 | +; Prove that (n s> 0) =\=> (n - 1 s> 0). |
32 | 32 | ; CHECK-LABEL: 'implied1_neg' |
33 | 33 | ; CHECK-NEXT: Determining loop execution counts for: @implied1_neg |
34 | 34 | ; CHECK-NEXT: Loop %header: backedge-taken count is (-1 + (1 smax (-1 + %n)<nsw>))<nsw> |
|
53 | 53 | } |
54 | 54 |
|
55 | 55 | define void @implied2(i32 %n) { |
56 | | -; Prove that (n >= -1) ===> (n + 1 >= 0). |
| 56 | +; Prove that (n u>= -1) ===> (n + 1 u>= 0). |
57 | 57 | ; CHECK-LABEL: 'implied2' |
58 | 58 | ; CHECK-NEXT: Determining loop execution counts for: @implied2 |
59 | 59 | ; CHECK-NEXT: Loop %header: Unpredictable backedge-taken count. |
|
86 | 86 | } |
87 | 87 |
|
88 | 88 | define void @implied2_neg(i32 %n) { |
89 | | -; Prove that (n >= -1) =\=> (n - 1 >= 0). |
| 89 | +; Prove that (n u>= -1) =\=> (n - 1 s>= 0). |
90 | 90 | ; CHECK-LABEL: 'implied2_neg' |
91 | 91 | ; CHECK-NEXT: Determining loop execution counts for: @implied2_neg |
92 | 92 | ; CHECK-NEXT: Loop %header: backedge-taken count is (-1 + (1 smax %n))<nsw> |
|
0 commit comments