[Mlir-commits] [mlir] [mlir][vector] Don't fold in_bounds for negative constant indices (PR #219681)
Federico Bruzzone
llvmlistbot at llvm.org
Sat Sep 5 01:23:19 PDT 2026
================
@@ -1435,6 +1435,53 @@ func.func @no_fold_transfer_write_in_bounds_scalable(%m: memref<4xf32>, %v: vect
// -----
+// `in_bounds` promises that the transfer stays within the source *including its
+// starting point*, so a negative index is not in bounds even when the end of
+// the transfer would land inside the source. Here `-1 + 4 <= 8` holds, but
+// element `-1` is still read from outside `%m`.
----------------
FedericoBruzzone wrote:
I do not think keeping these comments is useful. IMO, the name of the test is self-explanatory.
https://github.com/llvm/llvm-project/pull/219681
More information about the Mlir-commits
mailing list