OSDN Git Service

Do not create a HBoundType when the instruction is non-null.
authorNicolas Geoffray <ngeoffray@google.com>
Thu, 2 Jul 2015 14:48:27 +0000 (15:48 +0100)
committerNicolas Geoffray <ngeoffray@google.com>
Thu, 2 Jul 2015 14:58:52 +0000 (15:58 +0100)
commit3abd437507f8ba30a238a52c273c9944dcb9d5a1
tree9e058e63cb1176446a2838436223d8b18119a2b0
parent4990f5c14a04b9aad1be50d206b7c1f8989d8923
Do not create a HBoundType when the instruction is non-null.

We don't need to refine the type after a null check, if the
instruction is known non null or null. As a side effect, this
avoids replacing HLoadClass instructions with HBoundType instructions.

bug:22116987

Change-Id: I565ae95db5a64faec30e026674636e398e0bf445
compiler/optimizing/nodes.h
compiler/optimizing/reference_type_propagation.cc
test/519-bound-load-class/src/Main.java