[Mlir-commits] [mlir] [mlir][vector] Prevent folding of OOB values in insert/extract (PR #135498)
Jakub Kuderski
llvmlistbot at llvm.org
Sat Apr 12 19:00:31 PDT 2025
================
@@ -3233,3 +3233,41 @@ func.func @fold_insert_constant_indices(%arg : vector<4x1xi32>) -> vector<4x1xi3
%res = vector.insert %1, %arg[%0, %0] : i32 into vector<4x1xi32>
return %res : vector<4x1xi32>
}
+
+// -----
+
+// Check that out of bounds indices are not folded for vector.insert
----------------
kuhar wrote:
```suggestion
// Check that out of bounds indices are not folded for vector.insert.
```
https://github.com/llvm/llvm-project/pull/135498
More information about the Mlir-commits
mailing list