diff options
author | River Riddle <riverriddle@google.com> | 2019-08-09 17:20:02 -0700 |
---|---|---|
committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-08-09 17:20:29 -0700 |
commit | 41968fb4753118afe5a9f4fecf184fac90d96fe6 (patch) | |
tree | d2433a354fff778229c71a6c94df969003de9001 /mlir/lib/Dialect/QuantOps/Transforms/ConvertSimQuant.cpp | |
parent | baa1ec22f742c3e1545404cb30d2073b87c7271b (diff) | |
download | bcm5719-llvm-41968fb4753118afe5a9f4fecf184fac90d96fe6.tar.gz bcm5719-llvm-41968fb4753118afe5a9f4fecf184fac90d96fe6.zip |
NFC: Update usages of OwningRewritePatternList to pass by & instead of &&.
This will allow for reusing the same pattern list, which may be costly to continually reconstruct, on multiple invocations.
PiperOrigin-RevId: 262664599
Diffstat (limited to 'mlir/lib/Dialect/QuantOps/Transforms/ConvertSimQuant.cpp')
-rw-r--r-- | mlir/lib/Dialect/QuantOps/Transforms/ConvertSimQuant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Dialect/QuantOps/Transforms/ConvertSimQuant.cpp b/mlir/lib/Dialect/QuantOps/Transforms/ConvertSimQuant.cpp index 8f5d1b33c64..dfdce8964ba 100644 --- a/mlir/lib/Dialect/QuantOps/Transforms/ConvertSimQuant.cpp +++ b/mlir/lib/Dialect/QuantOps/Transforms/ConvertSimQuant.cpp @@ -98,7 +98,7 @@ void ConvertSimulatedQuantPass::runOnFunction() { auto func = getFunction(); auto *context = &getContext(); patterns.insert<ConstFakeQuantRewrite>(context, &hadFailure); - applyPatternsGreedily(func, std::move(patterns)); + applyPatternsGreedily(func, patterns); if (hadFailure) signalPassFailure(); } |