summaryrefslogtreecommitdiffstats
path: root/compiler/dex/mir_graph.cc
diff options
context:
space:
mode:
authorVladimir Marko <vmarko@google.com>2014-01-17 17:49:33 +0000
committerVladimir Marko <vmarko@google.com>2014-03-17 14:27:16 +0000
commitbfea9c29e809e04bde4a46591fea64c5a7b922fb (patch)
tree8c50357e0de293f105affd95941acc08ac33cd04 /compiler/dex/mir_graph.cc
parent341a84af890a328a6c8f719beb3f670dd1a369b4 (diff)
downloadandroid_art-bfea9c29e809e04bde4a46591fea64c5a7b922fb.tar.gz
android_art-bfea9c29e809e04bde4a46591fea64c5a7b922fb.tar.bz2
android_art-bfea9c29e809e04bde4a46591fea64c5a7b922fb.zip
Class initialization check elimination.
Also, move null check elimination temporaries to the ScopedArenaAllocator and reuse the same variables in the class initialization check elimination. Change-Id: Ic746f95427065506fa6016d4931e4cb8b34937af
Diffstat (limited to 'compiler/dex/mir_graph.cc')
-rw-r--r--compiler/dex/mir_graph.cc17
1 files changed, 4 insertions, 13 deletions
diff --git a/compiler/dex/mir_graph.cc b/compiler/dex/mir_graph.cc
index 8bb5615bd0..60719a50ca 100644
--- a/compiler/dex/mir_graph.cc
+++ b/compiler/dex/mir_graph.cc
@@ -63,9 +63,11 @@ MIRGraph::MIRGraph(CompilationUnit* cu, ArenaAllocator* arena)
dom_post_order_traversal_(NULL),
i_dom_list_(NULL),
def_block_matrix_(NULL),
- temp_block_v_(NULL),
temp_dalvik_register_v_(NULL),
- temp_ssa_register_v_(NULL),
+ temp_scoped_alloc_(),
+ temp_insn_data_(nullptr),
+ temp_bit_vector_size_(0u),
+ temp_bit_vector_(nullptr),
block_list_(arena, 100, kGrowableArrayBlockList),
try_block_addr_(NULL),
entry_block_(NULL),
@@ -1237,17 +1239,6 @@ void MIRGraph::InitializeSSATransformation() {
/* Rename register names by local defs and phi nodes */
ClearAllVisitedFlags();
DoDFSPreOrderSSARename(GetEntryBlock());
-
- /*
- * Shared temp bit vector used by each block to count the number of defs
- * from all the predecessor blocks.
- */
- temp_ssa_register_v_ =
- new (arena_) ArenaBitVector(arena_, GetNumSSARegs(), false, kBitMapTempSSARegisterV);
-}
-
-void MIRGraph::CheckSSARegisterVector() {
- DCHECK(temp_ssa_register_v_ != nullptr);
}
} // namespace art