diff options
| author | 2015-02-20 10:40:50 +0000 | |
|---|---|---|
| committer | 2015-02-20 10:40:51 +0000 | |
| commit | 4fe292e2b6ba3980605373f183055a374084c65b (patch) | |
| tree | cc689a549944d5302400aa155722e4e8715211b6 /compiler/optimizing/inliner.cc | |
| parent | 76f82fc75f245101828e2fdbbdec676af1717f0b (diff) | |
| parent | acf735c13998ad2a175f5a17e7bfce220073279d (diff) | |
Merge "Reference type propagation"
Diffstat (limited to 'compiler/optimizing/inliner.cc')
| -rw-r--r-- | compiler/optimizing/inliner.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/optimizing/inliner.cc b/compiler/optimizing/inliner.cc index 32f6972c84..d55a3ca00b 100644 --- a/compiler/optimizing/inliner.cc +++ b/compiler/optimizing/inliner.cc @@ -159,7 +159,7 @@ bool HInliner::TryInline(HInvoke* invoke_instruction, SsaDeadPhiElimination dead_phi(callee_graph); HDeadCodeElimination dce(callee_graph); HConstantFolding fold(callee_graph); - InstructionSimplifier simplify(callee_graph); + InstructionSimplifier simplify(callee_graph, stats_); HOptimization* optimizations[] = { &redundant_phi, @@ -176,7 +176,7 @@ bool HInliner::TryInline(HInvoke* invoke_instruction, if (depth_ + 1 < kDepthLimit) { HInliner inliner( - callee_graph, outer_compilation_unit_, compiler_driver_, outer_stats_, depth_ + 1); + callee_graph, outer_compilation_unit_, compiler_driver_, stats_, depth_ + 1); inliner.Run(); } @@ -221,7 +221,7 @@ bool HInliner::TryInline(HInvoke* invoke_instruction, // after optimizations get a unique id. graph_->SetCurrentInstructionId(callee_graph->GetNextInstructionId()); VLOG(compiler) << "Successfully inlined " << PrettyMethod(method_index, outer_dex_file); - outer_stats_->RecordStat(kInlinedInvoke); + MaybeRecordStat(kInlinedInvoke); return true; } |