From 68289a531484d26214e09f1eadd9833531a3bc3c Mon Sep 17 00:00:00 2001 From: Alex Light Date: Tue, 15 Dec 2015 17:30:30 -0800 Subject: Revert "ART: Refactor SsaBuilder for more precise typing info" This reverts commit d9510dfc32349eeb4f2145c801f7ba1d5bccfb12. Bug: 26208284 Bug: 24252151 Bug: 24252100 Bug: 22538329 Bug: 25786318 Change-Id: I5f491becdf076ff51d437d490405ec4e1586c010 --- compiler/optimizing/linearize_test.cc | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'compiler/optimizing/linearize_test.cc') diff --git a/compiler/optimizing/linearize_test.cc b/compiler/optimizing/linearize_test.cc index ed275b1544..a059766e00 100644 --- a/compiler/optimizing/linearize_test.cc +++ b/compiler/optimizing/linearize_test.cc @@ -29,11 +29,12 @@ #include "nodes.h" #include "optimizing_unit_test.h" #include "pretty_printer.h" +#include "ssa_builder.h" #include "ssa_liveness_analysis.h" -namespace art { +#include "gtest/gtest.h" -class LinearizeTest : public CommonCompilerTest {}; +namespace art { template static void TestCode(const uint16_t* data, const uint32_t (&expected_order)[number_of_blocks]) { @@ -45,7 +46,7 @@ static void TestCode(const uint16_t* data, const uint32_t (&expected_order)[numb bool graph_built = builder.BuildGraph(*item); ASSERT_TRUE(graph_built); - TransformToSsa(graph); + graph->TryBuildingSsa(); std::unique_ptr features_x86( X86InstructionSetFeatures::FromCppDefines()); @@ -59,7 +60,7 @@ static void TestCode(const uint16_t* data, const uint32_t (&expected_order)[numb } } -TEST_F(LinearizeTest, CFG1) { +TEST(LinearizeTest, CFG1) { // Structure of this graph (+ are back edges) // Block0 // | @@ -84,7 +85,7 @@ TEST_F(LinearizeTest, CFG1) { TestCode(data, blocks); } -TEST_F(LinearizeTest, CFG2) { +TEST(LinearizeTest, CFG2) { // Structure of this graph (+ are back edges) // Block0 // | @@ -109,7 +110,7 @@ TEST_F(LinearizeTest, CFG2) { TestCode(data, blocks); } -TEST_F(LinearizeTest, CFG3) { +TEST(LinearizeTest, CFG3) { // Structure of this graph (+ are back edges) // Block0 // | @@ -136,7 +137,7 @@ TEST_F(LinearizeTest, CFG3) { TestCode(data, blocks); } -TEST_F(LinearizeTest, CFG4) { +TEST(LinearizeTest, CFG4) { /* Structure of this graph (+ are back edges) // Block0 // | @@ -166,7 +167,7 @@ TEST_F(LinearizeTest, CFG4) { TestCode(data, blocks); } -TEST_F(LinearizeTest, CFG5) { +TEST(LinearizeTest, CFG5) { /* Structure of this graph (+ are back edges) // Block0 // | @@ -196,7 +197,7 @@ TEST_F(LinearizeTest, CFG5) { TestCode(data, blocks); } -TEST_F(LinearizeTest, CFG6) { +TEST(LinearizeTest, CFG6) { // Block0 // | // Block1 @@ -222,7 +223,7 @@ TEST_F(LinearizeTest, CFG6) { TestCode(data, blocks); } -TEST_F(LinearizeTest, CFG7) { +TEST(LinearizeTest, CFG7) { // Structure of this graph (+ are back edges) // Block0 // | -- cgit v1.2.3-59-g8ed1b