Skip to content

Commit b0a3d06

Browse files
committed
fixup! fixup! fixup! [mlir][Vector] Update VectorEmulateNarrowType.cpp (4/N)
Add minor missing re-naming (otherwise there are inconsistent names remaining))
1 parent aeea3e0 commit b0a3d06

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Dialect/Vector/Transforms/VectorEmulateNarrowType.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1505,18 +1505,18 @@ static LogicalResult alignedConversionPrecondition(PatternRewriter &rewriter,
15051505
return rewriter.notifyMatchFailure(op, "not a vector!");
15061506

15071507
unsigned subByteBits = subByteVecTy.getElementTypeBitWidth();
1508-
unsigned multiByteBits = containerTy.getIntOrFloatBitWidth();
1508+
unsigned containerBits = containerTy.getIntOrFloatBitWidth();
15091509

15101510
// Enforced by the common pre-conditions.
1511-
assert(multiByteBits % 8 == 0 && "Not a multi-byte scalar type!");
1511+
assert(containerBits % 8 == 0 && "Not a multi-byte scalar type!");
15121512

15131513
// TODO: Add support other widths (when/if needed)
15141514
if (subByteBits != 2 && subByteBits != 4)
15151515
return rewriter.notifyMatchFailure(
15161516
op, "only 2-bit and 4-bit sub-byte type is supported at this moment");
15171517

15181518
// Condition 1 ("per-element" alignment)
1519-
if (multiByteBits % subByteBits != 0)
1519+
if (containerBits % subByteBits != 0)
15201520
return rewriter.notifyMatchFailure(op, "unalagined element types");
15211521

15221522
// Condition 2 ("full" alignment)

0 commit comments

Comments
 (0)