[llvm] e78881e - [Test] Fix tests showing flags improvement for SCEV sub expressions (NFC)

Dmitry Makogon via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 14 04:13:21 PDT 2023


Author: Dmitry Makogon
Date: 2023-04-14T18:12:40+07:00
New Revision: e78881ebf864b5e449c3621e5a908d75cfea50e8

URL: https://github.com/llvm/llvm-project/commit/e78881ebf864b5e449c3621e5a908d75cfea50e8
DIFF: https://github.com/llvm/llvm-project/commit/e78881ebf864b5e449c3621e5a908d75cfea50e8.diff

LOG: [Test] Fix tests showing flags improvement for SCEV sub expressions (NFC)

This fixes a failing check in tests added by 05a142cc6fd1.

Added: 
    

Modified: 
    llvm/test/Analysis/ScalarEvolution/addrec-sub-nsw.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Analysis/ScalarEvolution/addrec-sub-nsw.ll b/llvm/test/Analysis/ScalarEvolution/addrec-sub-nsw.ll
index f8c83fdef824..18ed99cbcba4 100644
--- a/llvm/test/Analysis/ScalarEvolution/addrec-sub-nsw.ll
+++ b/llvm/test/Analysis/ScalarEvolution/addrec-sub-nsw.ll
@@ -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


        


More information about the llvm-commits mailing list