[Mlir-commits] [mlir] [mlir][Vector] Reject scalable outer dim in multi_reduction unrolling (PR #224174)

Cheng-Chieh Liu llvmlistbot at llvm.org
Tue Nov 3 07:59:53 PST 2026


================
@@ -356,6 +356,10 @@ struct TwoDimMultiReductionToElementWise
     if (multiReductionOp.isReducedDim(1) || !multiReductionOp.isReducedDim(0))
       return failure();
 
+    if (multiReductionOp.getSourceVectorType().getScalableDims()[0])
----------------
jay87406 wrote:

Added a comment + TODO above both bails explaining why scalable outer dims are rejected (the static size is only the vscale = 1 minimum, so unrolling would drop lanes). Also noted it in the pattern docs in `LoweringPatterns.h`.

https://github.com/llvm/llvm-project/pull/224174


More information about the Mlir-commits mailing list