diff options
author | 2014-12-05 01:06:53 +0000 | |
---|---|---|
committer | 2014-12-05 01:06:54 +0000 | |
commit | 044ac4f4f6760eeef4ed96b5349a8a5c325c52f1 (patch) | |
tree | 89263eae1b447de21b1b2bfa9b8839499de71d5c /compiler/optimizing/optimizing_compiler.cc | |
parent | a21fdd0432aa38b63d144ee4b92b6a567aab61d2 (diff) | |
parent | f384f88d4d1e89df82f47fbc7245a8acc9c2d49c (diff) |
Merge "Bounds check elimination."
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) { |