Skip to content

Commit 3b963f9

Browse files
committed
[MLIR] Apply clang-tidy fixes for llvm-else-after-return in TosaCanonicalizations.cpp (NFC)
1 parent 4826a88 commit 3b963f9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,9 @@ struct PoolPadFoldAdaptor<tosa::MaxPool2dOp> {
122122
const APFloat lowestVal =
123123
APFloat::getLargest(padConstVal.getSemantics(), true);
124124
return padConstVal == lowestVal;
125-
} else if (auto padConstIntAttr =
126-
mlir::dyn_cast<DenseIntElementsAttr>(padConstAttr)) {
125+
}
126+
if (auto padConstIntAttr =
127+
mlir::dyn_cast<DenseIntElementsAttr>(padConstAttr)) {
127128
const APInt padConstVal = *padConstIntAttr.begin();
128129
const unsigned int bitWidth = padConstVal.getBitWidth();
129130
const APInt lowestVal =

0 commit comments

Comments
 (0)