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 370d34f commit def5a8bCopy full SHA for def5a8b
mlir/lib/Dialect/Vector/Transforms/VectorUnroll.cpp
@@ -355,6 +355,11 @@ struct UnrollMultiReductionPattern
355
356
LogicalResult matchAndRewrite(vector::MultiDimReductionOp reductionOp,
357
PatternRewriter &rewriter) const override {
358
+ auto resultType = reductionOp->getResult(0).getType();
359
+ if (mlir::isa<mlir::FloatType>(resultType) ||
360
+ mlir::isa<mlir::IntegerType>(resultType)) {
361
+ return failure();
362
+ }
363
std::optional<SmallVector<int64_t>> targetShape =
364
getTargetShape(options, reductionOp);
365
if (!targetShape)
0 commit comments