summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Dialect/QuantOps/Transforms
diff options
context:
space:
mode:
authorAlex Zinenko <zinenko@google.com>2019-07-01 09:52:53 -0700
committerjpienaar <jpienaar@google.com>2019-07-01 09:56:56 -0700
commit5eef726bc8cf1e4b9d1067e52f9ad9f43bc1dec1 (patch)
tree3cff678cf241e77a56d325379eaed4678afd8283 /mlir/lib/Dialect/QuantOps/Transforms
parenta83fd0d2c7c28dc8d3c3a7f45869782de3d1fb64 (diff)
downloadbcm5719-llvm-5eef726bc8cf1e4b9d1067e52f9ad9f43bc1dec1.tar.gz
bcm5719-llvm-5eef726bc8cf1e4b9d1067e52f9ad9f43bc1dec1.zip
TypeConversion: do not materialize conversion of the type to itself
Type conversion does not necessarily affect all types, some of them may remain untouched. The type conversion tool from the dialect conversion framework will unconditionally insert a temporary cast operation from the type to itself anyway, and will try to materialize it to a real conversion operation if there are remaining uses. Simply use the original value instead. PiperOrigin-RevId: 255975450
Diffstat (limited to 'mlir/lib/Dialect/QuantOps/Transforms')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud