OSDN Git Service

ART: Revisit users in phi elimination
authorDavid Brazdil <dbrazdil@google.com>
Wed, 19 Aug 2015 13:17:31 +0000 (14:17 +0100)
committerDavid Brazdil <dbrazdil@google.com>
Wed, 19 Aug 2015 13:36:17 +0000 (14:36 +0100)
commit77b022dfb8e73564b00c4724f7078cb1d5a57a65
treeb62a68acdee9661364a6cb5e3621f27115140fbe
parent3bf1027cd09397f1c076f523de7b4553227d36d3
ART: Revisit users in phi elimination

SSA phi elimination visits phis in post order so that loop phis are
visited after their inputs. This prevents elimination of phis with
other phi inputs, exacerbated by the fact that the SSA builder does
create catch phis even if all inputs are the same (unlike with normal
phis). This patch revisits phi users of eliminated phis until no more
phis can be removed.

Change-Id: I403614dd46a8e6f0a5b9dd9e8ddc8832617521eb
compiler/optimizing/ssa_phi_elimination.cc
test/510-checker-try-catch/smali/SsaBuilder.smali