diff options
| author | 2013-11-14 15:34:17 +0000 | |
|---|---|---|
| committer | 2013-11-18 12:11:02 +0000 | |
| commit | 5c96e6b4dc354a7439b211b93462fbe8edea5e57 (patch) | |
| tree | b89930ae568d5219e4cb1823586a6e536bebdd9b /compiler/dex/quick/codegen_util.cc | |
| parent | ca368cb576cf6a436a32c357fca51fbb3082d7a9 (diff) | |
Rewrite intrinsics detection.
Intrinsic methods should be treated as a special case of
inline methods. They should be detected early and used to
guide other optimizations. This CL rewrites the intrinsics
detection so that it can be moved to any compilation phase.
Change-Id: I4424a6a869bd98b9c478953c9e3bcaf1c6de2b33
Diffstat (limited to 'compiler/dex/quick/codegen_util.cc')
| -rw-r--r-- | compiler/dex/quick/codegen_util.cc | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/dex/quick/codegen_util.cc b/compiler/dex/quick/codegen_util.cc index dfbc887299..4bc0b357af 100644 --- a/compiler/dex/quick/codegen_util.cc +++ b/compiler/dex/quick/codegen_util.cc @@ -920,7 +920,8 @@ Mir2Lir::Mir2Lir(CompilationUnit* cu, MIRGraph* mir_graph, ArenaAllocator* arena        core_spill_mask_(0),        fp_spill_mask_(0),        first_lir_insn_(NULL), -      last_lir_insn_(NULL) { +      last_lir_insn_(NULL), +      inliner_(nullptr) {    promotion_map_ = static_cast<PromotionMap*>        (arena_->Alloc((cu_->num_dalvik_registers  + cu_->num_compiler_temps + 1) *                        sizeof(promotion_map_[0]), ArenaAllocator::kAllocRegAlloc));  |