Skip to content

Commit 0a064df

Browse files
committed
Renamed a var per CR feedback.
1 parent 01d1e46 commit 0a064df

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1499,11 +1499,11 @@ vectorizeAsTensorPackOp(RewriterBase &rewriter, tensor::PackOp packOp,
14991499
// If the input vector sizes are not provided, then the vector sizes are
15001500
// determined by the result tensor shape. In case the vector sizes aren't
15011501
// provided, we update the inBounds attribute instead of masking.
1502-
bool doMasking = true;
1502+
bool useInBoundsInsteadOfMasking = true;
15031503
if (inputVectorSizes.empty()) {
15041504
ArrayRef<int64_t> resultTensorShape = packOp.getDestType().getShape();
15051505
inputVectorSizes = resultTensorShape.take_front(packOp.getSourceRank());
1506-
doMasking = false;
1506+
useInBoundsInsteadOfMasking = false;
15071507
}
15081508

15091509
// Create masked TransferReadOp.
@@ -1517,7 +1517,8 @@ vectorizeAsTensorPackOp(RewriterBase &rewriter, tensor::PackOp packOp,
15171517
for (auto [idx, size] : enumerate(innerTiles))
15181518
inputShape[innerDimsPos[idx]] *= size;
15191519
auto maskedRead = vector::createReadOrMaskedRead(
1520-
rewriter, loc, packOp.getSource(), inputShape, padValue, doMasking);
1520+
rewriter, loc, packOp.getSource(), inputShape, padValue,
1521+
useInBoundsInsteadOfMasking);
15211522

15221523
// Create ShapeCastOp.
15231524
SmallVector<int64_t> destShape(inputVectorSizes);

0 commit comments

Comments
 (0)