[Mlir-commits] [mlir] [mlir][vector] Add more patterns to Vector Linearize transformation (PR #136193)
Nishant Patel
llvmlistbot at llvm.org
Tue Apr 22 14:05:15 PDT 2025
================
@@ -531,12 +618,239 @@ struct LinearizeVectorBitCast final
unsigned targetVectorBitWidth;
};
+/// This pattern converts the LoadOp to a series of LoadOp & InsertOp
+/// that works on a linearized vector.
+/// Following,
+/// vector.load %base[%indices] : vector<4x4xf32>
+/// is converted to :
+/// %result = arith.constant dense<0.0> : vector<4x4xf32>
----------------
nbpatel wrote:
This is a more general solution for unstrided/strided memrefs and we can always fuse the loads later on as an optimization
https://github.com/llvm/llvm-project/pull/136193
More information about the Mlir-commits
mailing list