OSDN Git Service

ART: Optimize catch phi creation to save memory.
authorDavid Brazdil <dbrazdil@google.com>
Fri, 18 Sep 2015 13:58:57 +0000 (14:58 +0100)
committerDavid Brazdil <dbrazdil@google.com>
Fri, 18 Sep 2015 14:00:28 +0000 (15:00 +0100)
commiteead0711984ee20a3bba7c2e2415593a520e40b3
treecb3b7e7330cb421005557c138d65ed43f0118473
parent819a9c5638b6d6b579c89fe36df96acc1f378182
ART: Optimize catch phi creation to save memory.

Catch phis are eagerly created for all vregs and then removed as
throwing instructions with undefined locals are encountered. This can
be optimized since rougly one third of vregs is already undefined with
the first throwing instruction.

Change-Id: Ia4e66f19ea03f9a129b4b64d4193d262fff45224
compiler/optimizing/ssa_builder.cc
compiler/optimizing/ssa_builder.h