[Mlir-commits] [mlir] [mlir][tensor] Fix `createFillOrGenerateOp` (PR #121205)
Longsheng Mou
llvmlistbot at llvm.org
Mon Apr 14 05:09:25 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.
----------------
CoTinker wrote:
Good idea, done.
https://github.com/llvm/llvm-project/pull/121205
More information about the Mlir-commits
mailing list