diff options
author | Vladimir Marko <vmarko@google.com> | 2016-02-12 12:06:05 +0000 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2016-02-15 15:06:44 +0000 |
commit | b52bbde2870e5ab5d126612961dcb3da8e5236ee (patch) | |
tree | 3a58d251d8667e7c8447199a799fecba9bd5f918 /compiler/optimizing/graph_visualizer.cc | |
parent | 1b0755299928221a1dcc5db383bf8fc378d29b60 (diff) |
Optimizing: Simplify consecutive type conversions.
Merge two consecutive type conversions to one if the result
of such merged conversion is guaranteed to be the same and
remove all implicit conversions, not just conversions to the
same type. Improve codegens to handle conversions from long
to integral types smaller than int.
This will make it easier to simplify `(byte) (x & 0xffL)` to
`(byte) x` where the conversion from long to byte is done by
two dex instructions, long-to-int and in int-to-byte.
Bug: 23965701
Change-Id: I833f193556671136ad2cd3f5b31cdfbc2d99c19d
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions