[Mlir-commits] [mlir] [mlir][vector] Support fixed-size masks in `eliminateVectorMasks` (PR #221595)
Dhairyashil R G
llvmlistbot at llvm.org
Mon Sep 21 07:09:17 PDT 2026
================
@@ -54,9 +57,25 @@ LogicalResult resolveAllTrueCreateMaskOp(IRRewriter &rewriter,
for (auto [i, dimSize] : unknownDims) {
// Compute the lower bound for the unknown dimension (i.e. the smallest
// value it could be).
+ if (!vscaleRange) {
+ // A constant bound cannot prove a scalable dim, whose runtime size is
+ // `vscale` times the size in the type. Checked first to skip the query.
+ if (maskTypeDimScalableFlags[i])
+ return failure();
----------------
dhairyashilRG wrote:
Reverted, all ten sites are back to `failure()`, which is also how the function looked before this patch. No trouble at all, and worth finding out.
https://github.com/llvm/llvm-project/pull/221595
More information about the Mlir-commits
mailing list