[Mlir-commits] [mlir] [mlir][vector] Fix multi-reduction unrolling with a lower rank target shape (PR #216799)
Federico Bruzzone
llvmlistbot at llvm.org
Mon Aug 17 22:48:09 PDT 2026
================
@@ -383,17 +383,24 @@ struct UnrollMultiReductionPattern
Location loc = reductionOp.getLoc();
auto resultType = reductionOp->getResult(0).getType();
+ // A target shape with fewer dimensions than the source vector applies to
+ // its trailing dimensions. Add leading unit dimensions so that it can be
+ // used to slice the source and to index its dimensions, the same way
+ // UnrollElementwisePattern does.
----------------
FedericoBruzzone wrote:
```suggestion
// A target shape with fewer dimensions than the source vector applies to
// its trailing dimensions. Add leading unit dimensions so that it can be
// used to slice the source and to index its dimensions.
```
https://github.com/llvm/llvm-project/pull/216799
More information about the Mlir-commits
mailing list