[Mlir-commits] [mlir] [mlir][vector] Support fixed-size masks in `eliminateVectorMasks` (PR #221595)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Tue Sep 8 05:52:58 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();
----------------
banach-space wrote:
[nit] Could you use `notifyMatchFailure` instead of `failure`?
https://github.com/llvm/llvm-project/pull/221595
More information about the Mlir-commits
mailing list