diff options
| author | 2018-06-27 12:23:54 +0000 | |
|---|---|---|
| committer | 2018-06-27 12:23:54 +0000 | |
| commit | f07d5617770c37d87447c8bddf105eb0469ab093 (patch) | |
| tree | e6b15b904e591a3b805b292ce9afd9b0cecbf40d /compiler/optimizing/optimization.cc | |
| parent | 2dc252e37d4df0c4160cd20b6fc852f5f28b7b87 (diff) | |
| parent | a043111e3a2c09b549708a6227a1f54d91da76aa (diff) | |
Merge "Move instruction_set_ to CompilerOptions."
Diffstat (limited to 'compiler/optimizing/optimization.cc')
| -rw-r--r-- | compiler/optimizing/optimization.cc | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/optimizing/optimization.cc b/compiler/optimizing/optimization.cc index d37c43db81..a38bd2464d 100644 --- a/compiler/optimizing/optimization.cc +++ b/compiler/optimizing/optimization.cc @@ -40,6 +40,7 @@  #include "constructor_fence_redundancy_elimination.h"  #include "dead_code_elimination.h"  #include "dex/code_item_accessors-inl.h" +#include "driver/compiler_options.h"  #include "driver/dex_compilation_unit.h"  #include "gvn.h"  #include "induction_var_analysis.h" @@ -224,7 +225,7 @@ ArenaVector<HOptimization*> ConstructOptimizations(        case OptimizationPass::kLoopOptimization:          CHECK(most_recent_induction != nullptr);          opt = new (allocator) HLoopOptimization( -            graph, driver, most_recent_induction, stats, pass_name); +            graph, &codegen->GetCompilerOptions(), most_recent_induction, stats, pass_name);          break;        case OptimizationPass::kBoundsCheckElimination:          CHECK(most_recent_side_effects != nullptr && most_recent_induction != nullptr); @@ -286,7 +287,7 @@ ArenaVector<HOptimization*> ConstructOptimizations(          break;        case OptimizationPass::kScheduling:          opt = new (allocator) HInstructionScheduling( -            graph, driver->GetInstructionSet(), codegen, pass_name); +            graph, codegen->GetCompilerOptions().GetInstructionSet(), codegen, pass_name);          break;        //        // Arch-specific passes.  |