commit | c120bbe26fe116d3c9d8322f44bb9e330e07f745 | [log] [tgz] |
---|---|---|
author | David Brazdil <dbrazdil@google.com> | Fri Apr 22 16:57:00 2016 +0100 |
committer | David Brazdil <dbrazdil@google.com> | Fri Apr 22 16:57:00 2016 +0100 |
tree | 63e503da272d0be6d6dc243c29d4e7b184705710 | |
parent | 121c8a6494f2224830ed0ca33df5af0d8c077647 [diff] |
ART: Naive NullCheck elimination in InstructionBuilder Save a little bit of memory by not generating trivially redundant HNullCheck instructions. This patch builds on the fact that the InstructionBuilder now directly generates SSA form and looks at the input of the NullCheck. For obvious cases, such as NewInstance/Array or `this`, the NullCheck generation is completely avoided. Bug: 28173563 Change-Id: I1fdf3b096c7a939f7b8586c02a2a6b44dfa43443