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 d8cc8c6 commit 1a18184Copy full SHA for 1a18184
mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
@@ -561,7 +561,8 @@ static Value createLinalgBodyCalculationForElementwiseOp(
561
auto intMaxPlusOneFP = rewriter.create<arith::ConstantOp>(
562
loc, rewriter.getFloatAttr(
563
getElementTypeOrSelf(srcTy),
564
- static_cast<double>(APInt::getSignedMaxValue(dstTy.getIntOrFloatBitWidth())
+ static_cast<double>(
565
+ APInt::getSignedMaxValue(dstTy.getIntOrFloatBitWidth())
566
.getSExtValue()) +
567
1.0f));
568
0 commit comments