File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
mlir/lib/Conversion/TosaToLinalg Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -1468,9 +1468,9 @@ class RescaleConverter : public OpRewritePattern<tosa::RescaleOp> {
14681468 const int32_t inBitwidth = valueTy.getIntOrFloatBitWidth ();
14691469 // Extend zeropoint for sub-32bits widths.
14701470 const int32_t inAttrBitwidth = inBitwidth > 32 ? inBitwidth : 32 ;
1471- auto inputZp = nestedBuilder.create <arith::ConstantOp>(loc,
1472- IntegerAttr::get (rewriter.getIntegerType (inAttrBitwidth),
1473- *maybeIZp));
1471+ auto inputZp = nestedBuilder.create <arith::ConstantOp>(
1472+ loc, IntegerAttr::get (rewriter.getIntegerType (inAttrBitwidth),
1473+ *maybeIZp));
14741474
14751475 FailureOr<int64_t > maybeOZp = op.getOutputZeroPoint ();
14761476 if (failed (maybeOZp)) {
@@ -1484,9 +1484,9 @@ class RescaleConverter : public OpRewritePattern<tosa::RescaleOp> {
14841484 unsigned outBitWidth = outIntType.getWidth ();
14851485 const int32_t outAttrBitwidth = 32 ;
14861486 assert (outBitWidth <= 32 && " Unexpected output zeropoint bitwidth" );
1487- auto outputZp = nestedBuilder.create <arith::ConstantOp>(loc,
1488- IntegerAttr::get (rewriter.getIntegerType (outAttrBitwidth),
1489- *maybeOZp));
1487+ auto outputZp = nestedBuilder.create <arith::ConstantOp>(
1488+ loc, IntegerAttr::get (rewriter.getIntegerType (outAttrBitwidth),
1489+ *maybeOZp));
14901490
14911491 Value multiplier = multiplierConstant ? multiplierConstant
14921492 : blockArgs[multiplierArg];
You can’t perform that action at this time.
0 commit comments