From 2ae48182573da7087bffc2873730bc758ec29696 Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Wed, 16 Mar 2016 14:05:09 +0000 Subject: Clean up NullCheck generation and record stats about it. This removes redundant code from the generators and allows for easier stat recording. Change-Id: Iccd4368f9e9d87a6fecb863dee4e2145c97851c4 --- compiler/optimizing/optimizing_compiler.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/optimizing/optimizing_compiler.cc') diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 7a82063bba..a9cb1cc5f8 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -697,7 +697,8 @@ CodeGenerator* OptimizingCompiler::TryCompile(ArenaAllocator* arena, CodeGenerator::Create(graph, instruction_set, *compiler_driver->GetInstructionSetFeatures(), - compiler_driver->GetCompilerOptions())); + compiler_driver->GetCompilerOptions(), + compilation_stats_.get())); if (codegen.get() == nullptr) { MaybeRecordStat(MethodCompilationStat::kNotCompiledNoCodegen); return nullptr; -- cgit v1.2.3-59-g8ed1b