Skip to content

Commit 9acb3da

Browse files
committed
remove unrelated change.
1 parent 19695b4 commit 9acb3da

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

mlir/lib/Dialect/Vector/Transforms/VectorTransforms.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,7 +1623,6 @@ FailureOr<VectorType> dropNonScalableUnitDimType(VectorType VT) {
16231623
return newVT;
16241624
}
16251625

1626-
16271626
/// For vectors with at least an unit dim, replaces:
16281627
/// elementwise(a, b)
16291628
/// with:
@@ -1658,9 +1657,7 @@ struct DropUnitDimFromElementwiseOps final
16581657
using OpTraitRewritePattern::OpTraitRewritePattern;
16591658
LogicalResult matchAndRewrite(Operation *op,
16601659
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)
16641661
return failure();
16651662

16661663
auto resultVectorType = dyn_cast<VectorType>(op->getResult(0).getType());

0 commit comments

Comments
 (0)