Skip to content

Commit

Permalink
[Test] Fix tests showing flags improvement for SCEV sub expressions (…
Browse files Browse the repository at this point in the history
…NFC)

This fixes a failing check in tests added by 05a142c.
  • Loading branch information
d-makogon committed Apr 14, 2023
1 parent 6523e2f commit e78881e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/test/Analysis/ScalarEvolution/addrec-sub-nsw.ll
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ define i32 @test_2_non_positive(i32 %n) {
; CHECK-NEXT: %minus.i = mul i32 %i, -1
; CHECK-NEXT: --> {0,+,-1}<nw><%loop> U: [-2147483646,1) S: [-2147483646,1) Exits: (1 + (-1 * (1 smax %n))<nsw>)<nsw> LoopDispositions: { %loop: Computable }
; CHECK-NEXT: %a = sub i32 %minus.n, %minus.i
; CHECK-NEXT: --> {(-1 * %n),+,1}<nsw><%loop> U: full-set S: full-set Exits: (-1 + (-1 * %n) + (1 smax %n)) LoopDispositions: { %loop: Computable }
; CHECK-NEXT: --> {(-1 * %n),+,1}<nw><%loop> U: full-set S: full-set Exits: (-1 + (-1 * %n) + (1 smax %n)) LoopDispositions: { %loop: Computable }
; CHECK-NEXT: %i.next = add nuw nsw i32 %i, 1
; CHECK-NEXT: --> {1,+,1}<nuw><nsw><%loop> U: [1,-2147483648) S: [1,-2147483648) Exits: (1 smax %n) LoopDispositions: { %loop: Computable }
; CHECK-NEXT: Determining loop execution counts for: @test_2_non_positive
Expand Down

0 comments on commit e78881e

Please sign in to comment.