[Mlir-commits] [mlir] [MLIR] Implement emulation of static indexing subbyte type vector stores (PR #115922)

Andrzej WarzyƄski llvmlistbot at llvm.org
Sun Jan 19 13:14:33 PST 2025


================
@@ -336,30 +442,178 @@ struct ConvertVectorStore final : OpConversionPattern<vector::StoreOp> {
     // vector.store %bitcast, %alloc[%linear_index] : memref<16xi8>,
     // vector<4xi8>
 
-    auto origElements = op.getValueToStore().getType().getNumElements();
-    if (origElements % scale != 0)
-      return failure();
+    auto origElements = valueToStore.getType().getNumElements();
+    bool isAlignedEmulation = origElements % numSrcElemsPerDest == 0;
----------------
banach-space wrote:

* #123526 
* #123527 
* #123528 
* #123529 

You should be able to re-use `isSubByteVecFittable ` from #123529. 

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


More information about the Mlir-commits mailing list