We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4826a88 commit 3b963f9Copy full SHA for 3b963f9
mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
@@ -122,8 +122,9 @@ struct PoolPadFoldAdaptor<tosa::MaxPool2dOp> {
122
const APFloat lowestVal =
123
APFloat::getLargest(padConstVal.getSemantics(), true);
124
return padConstVal == lowestVal;
125
- } else if (auto padConstIntAttr =
126
- mlir::dyn_cast<DenseIntElementsAttr>(padConstAttr)) {
+ }
+ if (auto padConstIntAttr =
127
+ mlir::dyn_cast<DenseIntElementsAttr>(padConstAttr)) {
128
const APInt padConstVal = *padConstIntAttr.begin();
129
const unsigned int bitWidth = padConstVal.getBitWidth();
130
const APInt lowestVal =
0 commit comments