[llvm] [polly] [delinearize] Extract array dimensions from alloca and global declarations (PR #156342)
Sebastian Pop via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 10 09:13:17 PDT 2025
================
@@ -495,16 +497,15 @@ for.end: ; preds = %for.body
;; for (long int i = 0; i <= 15; i++) {
-;; A[3*i - 18][18 - i] = i;
+;; A[3*i + 18][18 - i] = i;
----------------
sebpop wrote:
Here's the C code this LLVM IR comes from. This is invalid C because the first subscript `A[3*0 - 18]` is out-of-bounds.
https://github.com/llvm/llvm-project/pull/156342
More information about the llvm-commits
mailing list