diff options
author | River Riddle <riverriddle@google.com> | 2019-05-19 16:43:08 -0700 |
---|---|---|
committer | Mehdi Amini <joker.eph@gmail.com> | 2019-05-20 13:47:44 -0700 |
commit | 3090a651b702bf021cf14911e2e7d22dc8104cc5 (patch) | |
tree | d0d1c0846c13471bd98b93ac17fcbe09ed9245dc /mlir/lib/Dialect/QuantOps/Transforms/ConvertConst.cpp | |
parent | 1e2d2f5d66ab64f2f8931d37334c4bad6c7ccc1f (diff) | |
download | bcm5719-llvm-3090a651b702bf021cf14911e2e7d22dc8104cc5.tar.gz bcm5719-llvm-3090a651b702bf021cf14911e2e7d22dc8104cc5.zip |
Update the rewrite methods of each of the DialectConversion patterns to notify the PatternRewriter that the operation is being replaced.
--
PiperOrigin-RevId: 248965082
Diffstat (limited to 'mlir/lib/Dialect/QuantOps/Transforms/ConvertConst.cpp')
-rw-r--r-- | mlir/lib/Dialect/QuantOps/Transforms/ConvertConst.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Dialect/QuantOps/Transforms/ConvertConst.cpp b/mlir/lib/Dialect/QuantOps/Transforms/ConvertConst.cpp index 228e16d752e..44b1156ec28 100644 --- a/mlir/lib/Dialect/QuantOps/Transforms/ConvertConst.cpp +++ b/mlir/lib/Dialect/QuantOps/Transforms/ConvertConst.cpp @@ -115,7 +115,7 @@ void QuantizedConstRewrite::rewrite(Operation *op, auto newConstOp = rewriter.create<ConstantOp>(fusedLoc, newConstValueType, newConstValue); rewriter.replaceOpWithNewOp<StorageCastOp>( - op, {origConstOp}, *op->result_type_begin(), newConstOp); + {origConstOp}, op, *op->result_type_begin(), newConstOp); } void ConvertConstPass::runOnFunction() { |