From f384f88d4d1e89df82f47fbc7245a8acc9c2d49c Mon Sep 17 00:00:00 2001 From: Mingyao Yang Date: Wed, 22 Oct 2014 16:08:18 -0700 Subject: Bounds check elimination. Change-Id: Ia0d6a4226c1f9f1ff1dd35347a38db1dc4265319 --- compiler/optimizing/optimizing_compiler.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'compiler/optimizing/optimizing_compiler.cc') 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 #include +#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) { -- cgit v1.2.3-59-g8ed1b