[Mlir-commits] [mlir] [mlir][Vector] Refactor VectorEmulateNarrowType.cpp (PR #123529)

Alan Li llvmlistbot at llvm.org
Mon Mar 10 09:18:43 PDT 2025


================
@@ -1964,8 +2033,9 @@ struct RewriteAlignedSubByteIntTrunc : OpRewritePattern<arith::TruncIOp> {
 
     // Check general alignment preconditions. We invert the src/dst type order
     // to reuse the existing precondition logic.
-    if (failed(alignedConversionPrecondition(rewriter, dstVecType, srcVecType,
-                                             truncOp)))
+    Type containerType = rewriter.getI8Type();
----------------
lialan wrote:

Since it is only 1 use, can fold it into subsequent line.

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


More information about the Mlir-commits mailing list