diff options
author | Mingyao Yang <mingyao@google.com> | 2014-10-22 16:08:18 -0700 |
---|---|---|
committer | Mingyao Yang <mingyao@google.com> | 2014-12-03 15:39:21 -0800 |
commit | f384f88d4d1e89df82f47fbc7245a8acc9c2d49c (patch) | |
tree | 11c1b7094ca95fda08feba3ee9f8622b096e327d /compiler/optimizing/optimizing_compiler.cc | |
parent | 8b9a97e8b6ed97ff1991596cbd0f7ce78f004766 (diff) | |
download | android_art-f384f88d4d1e89df82f47fbc7245a8acc9c2d49c.tar.gz android_art-f384f88d4d1e89df82f47fbc7245a8acc9c2d49c.tar.bz2 android_art-f384f88d4d1e89df82f47fbc7245a8acc9c2d49c.zip |
Bounds check elimination.
Change-Id: Ia0d6a4226c1f9f1ff1dd35347a38db1dc4265319
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) { |