diff options
Diffstat (limited to 'src/compiler/dex/quick/local_optimizations.cc')
-rw-r--r-- | src/compiler/dex/quick/local_optimizations.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/compiler/dex/quick/local_optimizations.cc b/src/compiler/dex/quick/local_optimizations.cc index 695b12c552..1cafce4e0a 100644 --- a/src/compiler/dex/quick/local_optimizations.cc +++ b/src/compiler/dex/quick/local_optimizations.cc @@ -245,7 +245,8 @@ void Mir2Lir::ApplyLoadStoreElimination(LIR* head_lir, LIR* tail_lir) DEBUG_OPT(dump_dependent_insn_pair(this_lir, check_lir, "REG CLOBBERED")); /* Only sink store instructions */ if (sink_distance && !is_this_lir_load) { - LIR* new_store_lir = static_cast<LIR*>(NewMem(cu_, sizeof(LIR), true, kAllocLIR)); + LIR* new_store_lir = + static_cast<LIR*>(arena_->NewMem(sizeof(LIR), true, ArenaAllocator::kAllocLIR)); *new_store_lir = *this_lir; /* * Stop point found - insert *before* the check_lir @@ -432,7 +433,8 @@ void Mir2Lir::ApplyLoadHoisting(LIR* head_lir, LIR* tail_lir) /* Found a slot to hoist to */ if (slot >= 0) { LIR* cur_lir = prev_inst_list[slot]; - LIR* new_load_lir = static_cast<LIR*>(NewMem(cu_, sizeof(LIR), true, kAllocLIR)); + LIR* new_load_lir = + static_cast<LIR*>(arena_->NewMem(sizeof(LIR), true, ArenaAllocator::kAllocLIR)); *new_load_lir = *this_lir; /* * Insertion is guaranteed to succeed since check_lir |