@@ -1499,11 +1499,11 @@ vectorizeAsTensorPackOp(RewriterBase &rewriter, tensor::PackOp packOp,
1499
1499
// If the input vector sizes are not provided, then the vector sizes are
1500
1500
// determined by the result tensor shape. In case the vector sizes aren't
1501
1501
// provided, we update the inBounds attribute instead of masking.
1502
- bool doMasking = true ;
1502
+ bool useInBoundsInsteadOfMasking = true ;
1503
1503
if (inputVectorSizes.empty ()) {
1504
1504
ArrayRef<int64_t > resultTensorShape = packOp.getDestType ().getShape ();
1505
1505
inputVectorSizes = resultTensorShape.take_front (packOp.getSourceRank ());
1506
- doMasking = false ;
1506
+ useInBoundsInsteadOfMasking = false ;
1507
1507
}
1508
1508
1509
1509
// Create masked TransferReadOp.
@@ -1517,7 +1517,8 @@ vectorizeAsTensorPackOp(RewriterBase &rewriter, tensor::PackOp packOp,
1517
1517
for (auto [idx, size] : enumerate(innerTiles))
1518
1518
inputShape[innerDimsPos[idx]] *= size;
1519
1519
auto maskedRead = vector::createReadOrMaskedRead (
1520
- rewriter, loc, packOp.getSource (), inputShape, padValue, doMasking);
1520
+ rewriter, loc, packOp.getSource (), inputShape, padValue,
1521
+ useInBoundsInsteadOfMasking);
1521
1522
1522
1523
// Create ShapeCastOp.
1523
1524
SmallVector<int64_t > destShape (inputVectorSizes);
0 commit comments