diff options
Diffstat (limited to 'compiler/optimizing/optimizing_compiler.cc')
-rw-r--r-- | compiler/optimizing/optimizing_compiler.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/compiler/optimizing/optimizing_compiler.cc b/compiler/optimizing/optimizing_compiler.cc index 100a6bc4a3..11fc9bf9b9 100644 --- a/compiler/optimizing/optimizing_compiler.cc +++ b/compiler/optimizing/optimizing_compiler.cc @@ -19,6 +19,7 @@ #include <fstream> #include <stdint.h> +#include "bounds_check_elimination.h" #include "builder.h" #include "code_generator.h" #include "compiler.h" @@ -198,7 +199,8 @@ static void RunOptimizations(HGraph* graph, const HGraphVisualizer& visualizer) SsaDeadPhiElimination opt4(graph); InstructionSimplifier opt5(graph); GVNOptimization opt6(graph); - InstructionSimplifier opt7(graph); + BoundsCheckElimination bce(graph); + InstructionSimplifier opt8(graph); HOptimization* optimizations[] = { &opt1, @@ -207,7 +209,8 @@ static void RunOptimizations(HGraph* graph, const HGraphVisualizer& visualizer) &opt4, &opt5, &opt6, - &opt7 + &bce, + &opt8 }; for (size_t i = 0; i < arraysize(optimizations); ++i) { |