Skip to content

Commit c7da6d2

Browse files
committed
rebase
1 parent c1c3d9b commit c7da6d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Conversion/TTIRToLinalg/TTIRToLinalg.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3149,11 +3149,11 @@ class MeanOpConversionPattern : public OpConversionPattern<ttir::MeanOp> {
31493149
const bool useUnsignedCast =
31503150
intType.isUnsigned() || intType.getWidth() == 1;
31513151
if (useUnsignedCast) {
3152-
input = rewriter.create<arith::UIToFPOp>(op.getLoc(), floatInputType,
3153-
input);
3152+
input = arith::UIToFPOp::create(rewriter, op.getLoc(), floatInputType,
3153+
input);
31543154
} else {
3155-
input = rewriter.create<arith::SIToFPOp>(op.getLoc(), floatInputType,
3156-
input);
3155+
input = arith::SIToFPOp::create(rewriter, op.getLoc(), floatInputType,
3156+
input);
31573157
}
31583158
inputType = cast<RankedTensorType>(input.getType());
31593159
}

0 commit comments

Comments
 (0)