[llvm] ff20ee3 - [LoopVectorize] Remove incorrect nuw flag from test (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue May 10 03:18:08 PDT 2022


Author: Nikita Popov
Date: 2022-05-10T12:17:09+02:00
New Revision: ff20ee32d82d839c6ec7161795112fca268c2417

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

LOG: [LoopVectorize] Remove incorrect nuw flag from test (NFC)

nuw does not make sense for reverse iteration.

Added: 
    

Modified: 
    llvm/test/Transforms/LoopVectorize/consecutive-ptr-uniforms.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/LoopVectorize/consecutive-ptr-uniforms.ll b/llvm/test/Transforms/LoopVectorize/consecutive-ptr-uniforms.ll
index 1fb1f302f4bbf..3611d8bc2c3e5 100644
--- a/llvm/test/Transforms/LoopVectorize/consecutive-ptr-uniforms.ll
+++ b/llvm/test/Transforms/LoopVectorize/consecutive-ptr-uniforms.ll
@@ -65,7 +65,7 @@ for.body:
   %tmp1 = getelementptr inbounds i32, i32* %a, i64 %i
   %tmp2 = load i32, i32* %tmp1, align 8
   %tmp3 = add i32 %tmp0, %tmp2
-  %i.next = add nuw nsw i64 %i, -1
+  %i.next = add nsw i64 %i, -1
   %cond = icmp sgt i64 %i.next, 0
   br i1 %cond, label %for.body, label %for.end
 
@@ -181,7 +181,7 @@ for.body:
   %tmp4 = load i32, i32* %tmp2, align 8
   %tmp5 = add i32 %tmp3, %tmp4
   %tmp6 = add i32 %tmp0, %tmp5
-  %i.next = add nuw nsw i64 %i, -1
+  %i.next = add nsw i64 %i, -1
   %cond = icmp sgt i64 %i.next, 0
   br i1 %cond, label %for.body, label %for.end
 


        


More information about the llvm-commits mailing list