Skip to content

Commit 46ce993

Browse files
committed
Apply clang-tidy fixes for llvm-else-after-return in ElementwiseOpFusion.cpp (NFC)
1 parent f19f213 commit 46ce993

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

mlir/lib/Dialect/Linalg/Transforms/ElementwiseOpFusion.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,11 +1403,10 @@ static Value getCollapsedOpOperand(Location loc, LinalgOp op,
14031403
return builder
14041404
.create<memref::CollapseShapeOp>(loc, operand, operandReassociation)
14051405
.getResult();
1406-
} else {
1407-
return builder
1408-
.create<tensor::CollapseShapeOp>(loc, operand, operandReassociation)
1409-
.getResult();
14101406
}
1407+
return builder
1408+
.create<tensor::CollapseShapeOp>(loc, operand, operandReassociation)
1409+
.getResult();
14111410
}
14121411

14131412
/// Modify the `linalg.index` operations in the original generic op, to its

0 commit comments

Comments
 (0)