[llvm] [DA] Fix the check between Subscript and Size after delinearization (PR #151326)

Ryotaro Kasuga via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 7 05:40:11 PDT 2025


================
@@ -719,12 +719,14 @@ for.end:                                          ; preds = %for.body
 ;;    for(int j = 0; j < M; j+=1)
 ;;      A[M*N + M*i + j] = 2;
 
+; FIXME: Currently failing to infer %M being positive.
----------------
kasuga-fj wrote:

I might be misunderstanding something, but in principle, we can infer it from `nsw` on `%add10.us`?

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


More information about the llvm-commits mailing list