OSDN Git Service

ART: Allow overridable calculation of basic block dataflow
authorRazvan A Lupusoru <razvan.a.lupusoru@intel.com>
Mon, 29 Sep 2014 18:59:12 +0000 (11:59 -0700)
committerRazvan A Lupusoru <razvan.a.lupusoru@intel.com>
Tue, 30 Sep 2014 17:33:48 +0000 (10:33 -0700)
commit6f4dcae28c23a9ac42fd1283ea1c2462f5e1e210
treecda59f07940539a985273c2ee214790ba1738641
parentc70535b4f9f1ff3e3da451734bb7d9601012ccc1
ART: Allow overridable calculation of basic block dataflow

Currently dataflow information is not calculated for catch blocks in order to
reduce overhead. However, this makes assumption that the lack of this
information is only preventing local optimizations to catch block. But in
reality this problematic for global optimizations.

However, since no optimizations need complete information for now, simply
leave logic same but factor it out in separate method.

Change-Id: I5c13344c18409bd172a5d9b07577b4a1353cc733
Signed-off-by: Razvan A Lupusoru <razvan.a.lupusoru@intel.com>
compiler/dex/mir_dataflow.cc
compiler/dex/mir_graph.h