We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59405cd commit f7cd3fcCopy full SHA for f7cd3fc
mlir/lib/Dialect/Vector/IR/VectorOps.cpp
@@ -328,7 +328,7 @@ struct ElideUnitDimsInMultiDimReduction
328
LogicalResult matchAndRewrite(MultiDimReductionOp reductionOp,
329
PatternRewriter &rewriter) const override {
330
ArrayRef<int64_t> shape = reductionOp.getSourceVectorType().getShape();
331
- for (auto dim : enumerate(shape)) {
+ for (const auto &dim : enumerate(shape)) {
332
if (reductionOp.isReducedDim(dim.index()) && dim.value() != 1)
333
return failure();
334
}
0 commit comments