Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lialan committed Dec 29, 2024
1 parent 1bd1c29 commit 7f752a4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ static Value canonicalizeFillPattern(Value pattern, OpBuilder &builder) {
// %i8_val = (%i8_val << 2) | %i2_val
// %i8_val = (%i8_val << 2) | %i2_val
// %i8_val = (%i8_val << 2) | %i2_val
if (needToPackSubByteElementBitWidth(elementBitWidth)) {
bool patternIsPacked = IREE::Encoding::hasPackedStorageAttr(pattern.getType());
if (!patternIsPacked && needToPackSubByteElementBitWidth(elementBitWidth)) {
Type i8Type = builder.getI8Type();
Value bitwidth = builder.createOrFold<arith::ConstantOp>(
loc, i8Type, builder.getIntegerAttr(i8Type, elementBitWidth));
Expand Down

0 comments on commit 7f752a4

Please sign in to comment.