[Mlir-commits] [mlir] [MLIR] Fix VectorEmulateNarrowType constant op mask bug (PR #116064)
Han-Chung Wang
llvmlistbot at llvm.org
Wed Nov 13 16:27:18 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");
----------------
hanhanW wrote:
In this case, we can `return failure()` and add a TODO comment saying that it is not yet implemented. We should not crash in debug build and I believe the patterns can recover the state for this case.
https://github.com/llvm/llvm-project/pull/116064
More information about the Mlir-commits
mailing list