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

Andrzej WarzyƄski llvmlistbot at llvm.org
Fri Jan 17 07:33:39 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:

OK, I think that I have something that would help unify things and clarify the terminology a bit. But I'm worried that I discovered an inconsistency/bug, so need to double check. 

Let me get back to you on Monday, I've run out of cycles for the week :( 

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


More information about the Mlir-commits mailing list