Skip to content

Commit 735085a

Browse files
committed
Address comment
1 parent 79e5629 commit 735085a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mlir/lib/Dialect/Linalg/Transforms/PadTilingInterface.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,8 @@ SmallVector<OpFoldResult> linalg::computePaddedShape(
187187
for (unsigned i = 1; i < dims.size(); ++i)
188188
sumExpr = sumExpr + dims[i];
189189
// Add 1 to the maximum accessed index and get the final padded size.
190-
sumExpr = sumExpr + rewriter.getAffineConstantExpr(1);
191-
OpFoldResult paddedDimOfr =
192-
affine::makeComposedFoldedAffineApply(rewriter, loc, sumExpr, terms);
190+
OpFoldResult paddedDimOfr = affine::makeComposedFoldedAffineApply(
191+
rewriter, loc, sumExpr + 1, terms);
193192
paddedShape[resultIndex] = paddedDimOfr;
194193
}
195194

0 commit comments

Comments
 (0)