[Mlir-commits] [mlir] [mlir][Transforms] Improve `replaceOpWithMultiple` API (PR #132608)

Matthias Springer llvmlistbot at llvm.org
Tue Mar 25 06:38:03 PDT 2025


================
@@ -192,7 +192,7 @@ struct LegalizeArithConstantOpsByDecomposition
     auto tileCount = getNumberOfSMETilesForVectorType(vectorType);
     auto tileSplat = rewriter.create<arith::ConstantOp>(
         constantOp.getLoc(), denseAttr.resizeSplat(smeTileType));
-    SmallVector<Value> repl(tileCount, tileSplat);
+    SmallVector<Value, 1> repl(tileCount, tileSplat);
----------------
matthias-springer wrote:

Note: The old API still works, but I switched to `SmallVector<Value, 1>` to avoid a copy here.

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


More information about the Mlir-commits mailing list