diff options
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; } |