File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
mlir/lib/Dialect/Vector/Transforms Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -1623,7 +1623,6 @@ FailureOr<VectorType> dropNonScalableUnitDimType(VectorType VT) {
1623
1623
return newVT;
1624
1624
}
1625
1625
1626
-
1627
1626
// / For vectors with at least an unit dim, replaces:
1628
1627
// / elementwise(a, b)
1629
1628
// / with:
@@ -1658,9 +1657,7 @@ struct DropUnitDimFromElementwiseOps final
1658
1657
using OpTraitRewritePattern::OpTraitRewritePattern;
1659
1658
LogicalResult matchAndRewrite (Operation *op,
1660
1659
PatternRewriter &rewriter) const override {
1661
- if (op->getNumResults () != 1 )
1662
- return failure ();
1663
- if (op->getNumRegions () != 0 )
1660
+ if (op->getNumResults () != 1 || op->getNumRegions () != 0 )
1664
1661
return failure ();
1665
1662
1666
1663
auto resultVectorType = dyn_cast<VectorType>(op->getResult (0 ).getType ());
You can’t perform that action at this time.
0 commit comments