[llvm] [DA] Rewrite the formula in the Strong SIV test (PR #179665)

Ehsan Amiri via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 17 06:51:05 PST 2026


amehsan wrote:

One major point of disagreement is what is the preconditions of the tests  (For now, let's focus on strongSIV):

A concern that you raised in a previous comment is this: https://github.com/llvm/llvm-project/pull/162281#discussion_r2537037457

> In principle, each dependence test assumes monotonicity over the entire iteration space..... I don't think this discrepancy immediately leads to unsoundness, I believe it's risky. I'm concerned that future changes could inadvertently introduce unsoundness due to this gap.

The point is that existing implementation doesn't have this assumption. But with your change here, you are adding this assumption to the test and your concern that I quoted above is valid _after the change you are proposing here._

@Meinersbur raised some concerns about my proof. Those concerns are mainly about how the proof is presented. I have re-written the proof and it is almost ready. Will post it later today.

The question that I have asked multiple times is still unanswered: How do you justify correctness of your change. Or for that matter how can one justify correctness of any of the DA tests? What tool do we have except a mathemtical proof to explain why a test is correct?



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


More information about the llvm-commits mailing list