[llvm] [DA] Fix test case for the Weak Zero SIV tests (NFC) (PR #185555)

via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 9 19:13:31 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-analysis

Author: Ryotaro Kasuga (kasuga-fj)

<details>
<summary>Changes</summary>

he IR does not match the pseudo code. The pseudo code is intentional, so update the IR accordingly.

---
Full diff: https://github.com/llvm/llvm-project/pull/185555.diff


1 Files Affected:

- (modified) llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-overflow.ll (+1-1) 


``````````diff
diff --git a/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-overflow.ll b/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-overflow.ll
index 9c63346e5d752..0c66d38a90fff 100644
--- a/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-overflow.ll
+++ b/llvm/test/Analysis/DependenceAnalysis/weak-zero-siv-overflow.ll
@@ -92,7 +92,7 @@ entry:
 
 loop.header:
   %i = phi i64 [ 0, %entry ], [ %i.inc, %loop.latch ]
-  %offset = phi i64 [ -2, %entry ], [ %offset.next, %loop.latch ]
+  %offset = phi i64 [ -1, %entry ], [ %offset.next, %loop.latch ]
   %ec = icmp eq i64 %i, %n
   br i1 %ec, label %exit, label %loop.body
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/185555


More information about the llvm-commits mailing list