summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/bounds_check_elimination_test.cc
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-01-26 15:18:36 +0000
committerNicolas Geoffray <ngeoffray@google.com>2015-01-26 16:02:35 +0000
commit827eedbfa882496407375f22b08243a38a5bd53b (patch)
treeaa4ff781982ffd2f8a95d9a6cdeb1aa28a1f671a /compiler/optimizing/bounds_check_elimination_test.cc
parentf90eec005997f98c1a9f874fbbf68414e5f9c766 (diff)
downloadart-827eedbfa882496407375f22b08243a38a5bd53b.tar.gz
art-827eedbfa882496407375f22b08243a38a5bd53b.tar.bz2
art-827eedbfa882496407375f22b08243a38a5bd53b.zip
Move code around and address growable_array comment.
- Move SideEffectsAnalysis to its own file. - Move most of gvn.h to gvn.cc. - Don't call Resize in GrowableArray constructor, but just set num_used directly. Change-Id: I1f1291207945d678d3c99cc0ec1ec155bcae82f6
Diffstat (limited to 'compiler/optimizing/bounds_check_elimination_test.cc')
-rw-r--r--compiler/optimizing/bounds_check_elimination_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/optimizing/bounds_check_elimination_test.cc b/compiler/optimizing/bounds_check_elimination_test.cc
index d5de3efa62..b6aaab5ef5 100644
--- a/compiler/optimizing/bounds_check_elimination_test.cc
+++ b/compiler/optimizing/bounds_check_elimination_test.cc
@@ -19,6 +19,7 @@
#include "gvn.h"
#include "nodes.h"
#include "optimizing_unit_test.h"
+#include "side_effects_analysis.h"
#include "utils/arena_allocator.h"
#include "gtest/gtest.h"
@@ -28,7 +29,7 @@ namespace art {
static void RunGvn(HGraph* graph) {
SideEffectsAnalysis side_effects(graph);
side_effects.Run();
- GlobalValueNumberer(graph->GetArena(), graph, side_effects).Run();
+ GVNOptimization(graph, side_effects).Run();
}
// if (i < 0) { array[i] = 1; // Can't eliminate. }