[Mlir-commits] [mlir] [mlir] Fix type transformation in DropUnitDimFromElementwiseOps (PR #75430)
Andrzej WarzyĆski
llvmlistbot at llvm.org
Wed Dec 13 23:37:43 PST 2023
================
@@ -1480,17 +1480,24 @@ struct DropUnitDimFromElementwiseOps final
using OpTraitRewritePattern::OpTraitRewritePattern;
LogicalResult matchAndRewrite(Operation *op,
PatternRewriter &rewriter) const override {
- if (op->getNumResults() != 1)
+ if (op->getNumResults() != 1 || op->getNumRegions() != 0)
----------------
banach-space wrote:
What cases does this condition catch: ` op->getNumRegions() != 0)`?
https://github.com/llvm/llvm-project/pull/75430
More information about the Mlir-commits
mailing list