[Mlir-commits] [mlir] [MLIR] Fix VectorEmulateNarrowType constant op mask bug (PR #116064)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Wed Nov 13 13:32:28 PST 2024
================
@@ -129,6 +132,45 @@ static FailureOr<Operation *> getCompressedMaskOp(OpBuilder &rewriter,
auto denseAttr = DenseElementsAttr::get(newMaskType, newMaskValues);
newMask = rewriter.create<arith::ConstantOp>(loc, newMaskType, denseAttr);
}
+ } else if (constantOp) {
+ assert(shape.size() == 1 && "expected 1-D mask");
----------------
banach-space wrote:
At this point it's hard to tell what `shape` is (as in, "shape" of what?). Could you rename it?
Also, why do we need this restriction for this particular case and not for the other cases?
https://github.com/llvm/llvm-project/pull/116064
More information about the Mlir-commits
mailing list