Skip to content

Commit a614b60

Browse files
committed
SCEV/test: fix nit
1 parent 846a440 commit a614b60

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/test/Analysis/ScalarEvolution/implied-via-addition.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
; RUN: -scalar-evolution-classify-expressions=0 2>&1 | FileCheck %s
44

55
define void @implied1(i32 %n) {
6-
; Prove that (n > 1) ===> (n - 1 > 0).
6+
; Prove that (n s> 1) ===> (n - 1 s> 0).
77
; CHECK-LABEL: 'implied1'
88
; CHECK-NEXT: Determining loop execution counts for: @implied1
99
; CHECK-NEXT: Loop %header: backedge-taken count is (-2 + %n)
@@ -28,7 +28,7 @@ exit:
2828
}
2929

3030
define void @implied1_neg(i32 %n) {
31-
; Prove that (n > 0) =\=> (n - 1 > 0).
31+
; Prove that (n s> 0) =\=> (n - 1 s> 0).
3232
; CHECK-LABEL: 'implied1_neg'
3333
; CHECK-NEXT: Determining loop execution counts for: @implied1_neg
3434
; CHECK-NEXT: Loop %header: backedge-taken count is (-1 + (1 smax (-1 + %n)<nsw>))<nsw>
@@ -53,7 +53,7 @@ exit:
5353
}
5454

5555
define void @implied2(i32 %n) {
56-
; Prove that (n >= -1) ===> (n + 1 >= 0).
56+
; Prove that (n u>= -1) ===> (n + 1 u>= 0).
5757
; CHECK-LABEL: 'implied2'
5858
; CHECK-NEXT: Determining loop execution counts for: @implied2
5959
; CHECK-NEXT: Loop %header: Unpredictable backedge-taken count.
@@ -86,7 +86,7 @@ exit:
8686
}
8787

8888
define void @implied2_neg(i32 %n) {
89-
; Prove that (n >= -1) =\=> (n - 1 >= 0).
89+
; Prove that (n u>= -1) =\=> (n - 1 s>= 0).
9090
; CHECK-LABEL: 'implied2_neg'
9191
; CHECK-NEXT: Determining loop execution counts for: @implied2_neg
9292
; CHECK-NEXT: Loop %header: backedge-taken count is (-1 + (1 smax %n))<nsw>

0 commit comments

Comments
 (0)