[Mlir-commits] [mlir] [mlir][vector] Implement IndexedAccessOpInterface for load, store, etc. (PR #196216)

Krzysztof Drewniak llvmlistbot at llvm.org
Fri May 8 06:50:41 PDT 2026


================
@@ -642,6 +642,25 @@ func.func @fold_vector_load_subview(%src : memref<24x64xf32>,
 
 // -----
 
+// This should fold, but implementing IndexedAccessOpInterface on vector.load
+// in a way that would allow the fold added complexity (emitting
+// `vector.shape_cast`s) that people wanted to keep out of the initial
+// implementation during previous discussions, so we leave it negative for now.
+func.func @no_fold_scalar_equivalent_vector_load_subview(
----------------
krzysz00 wrote:

So this is prefixed as a negative test?

And also the old code didn't allow this fold either - this was a feature I wanted to implement

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


More information about the Mlir-commits mailing list