[Mlir-commits] [mlir] [mlir][tensor] Fix `createFillOrGenerateOp` (PR #121205)
Mehdi Amini
llvmlistbot at llvm.org
Mon Apr 14 03:09:40 PDT 2025
================
@@ -927,8 +927,12 @@ Value DecomposePadOpPattern::createFillOrGenerateOp(
RewriterBase &rewriter, tensor::PadOp padOp, Value dest,
const SmallVector<Value> &dynSizes) const {
auto padValue = padOp.getConstantPaddingValue();
- if (padValue)
+ if (padValue) {
+ // Clone the padding value defined inside the PadOp block to outside.
----------------
joker-eph wrote:
Could we move it instead of cloning it?
https://github.com/llvm/llvm-project/pull/121205
More information about the Mlir-commits
mailing list