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

Alan Li llvmlistbot at llvm.org
Fri Jan 24 03:14:14 PST 2025


================
@@ -685,9 +938,9 @@ struct ConvertVectorMaskedLoad final
         loc, newBitcastType, rewriter.getZeroAttr(newBitcastType));
     if (!foldedIntraVectorOffset) {
       passthru = dynamicallyInsertSubVector(
-          rewriter, loc, dyn_cast<TypedValue<VectorType>>(passthru),
-          emptyVector, linearizedInfo.intraDataOffset, origElements);
-    } else if (isUnalignedEmulation) {
+          rewriter, loc, cast<VectorValue>(passthru), emptyVector,
----------------
lialan wrote:

I think you are right, this is a slight opt that we can do. I have updated to use assert, except those functions that specifically need `VectorValue`.

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


More information about the Mlir-commits mailing list