diff options
Diffstat (limited to 'mlir/lib/Dialect')
3 files changed, 4 insertions, 4 deletions
diff --git a/mlir/lib/Dialect/FxpMathOps/Transforms/LowerUniformRealMath.cpp b/mlir/lib/Dialect/FxpMathOps/Transforms/LowerUniformRealMath.cpp index ff198217bb7..dafc8e711f5 100644 --- a/mlir/lib/Dialect/FxpMathOps/Transforms/LowerUniformRealMath.cpp +++ b/mlir/lib/Dialect/FxpMathOps/Transforms/LowerUniformRealMath.cpp @@ -365,7 +365,7 @@ struct UniformRealMulEwPattern : public OpRewritePattern<RealMulEwOp> { //===----------------------------------------------------------------------===// void LowerUniformRealMathPass::runOnFunction() { - auto &fn = getFunction(); + auto fn = getFunction(); OwningRewritePatternList patterns; auto *context = &getContext(); patterns.push_back(llvm::make_unique<UniformRealAddEwPattern>(context)); @@ -386,7 +386,7 @@ static PassRegistration<LowerUniformRealMathPass> lowerUniformRealMathPass( //===----------------------------------------------------------------------===// void LowerUniformCastsPass::runOnFunction() { - auto &fn = getFunction(); + auto fn = getFunction(); OwningRewritePatternList patterns; auto *context = &getContext(); patterns.push_back(llvm::make_unique<UniformDequantizePattern>(context)); diff --git a/mlir/lib/Dialect/QuantOps/Transforms/ConvertConst.cpp b/mlir/lib/Dialect/QuantOps/Transforms/ConvertConst.cpp index 9dcc6df6bea..8469fa2ea70 100644 --- a/mlir/lib/Dialect/QuantOps/Transforms/ConvertConst.cpp +++ b/mlir/lib/Dialect/QuantOps/Transforms/ConvertConst.cpp @@ -106,7 +106,7 @@ QuantizedConstRewrite::matchAndRewrite(QuantizeCastOp qbarrier, void ConvertConstPass::runOnFunction() { OwningRewritePatternList patterns; - auto &func = getFunction(); + auto func = getFunction(); auto *context = &getContext(); patterns.push_back(llvm::make_unique<QuantizedConstRewrite>(context)); applyPatternsGreedily(func, std::move(patterns)); diff --git a/mlir/lib/Dialect/QuantOps/Transforms/ConvertSimQuant.cpp b/mlir/lib/Dialect/QuantOps/Transforms/ConvertSimQuant.cpp index ea8095b791c..0c93146a232 100644 --- a/mlir/lib/Dialect/QuantOps/Transforms/ConvertSimQuant.cpp +++ b/mlir/lib/Dialect/QuantOps/Transforms/ConvertSimQuant.cpp @@ -95,7 +95,7 @@ public: void ConvertSimulatedQuantPass::runOnFunction() { bool hadFailure = false; OwningRewritePatternList patterns; - auto &func = getFunction(); + auto func = getFunction(); auto *context = &getContext(); patterns.push_back( llvm::make_unique<ConstFakeQuantRewrite>(context, &hadFailure)); |