diff options
| author | 2015-12-16 08:45:07 +0000 | |
|---|---|---|
| committer | 2015-12-16 08:45:07 +0000 | |
| commit | 13cd5cad6e51f52d7e2ef38c9415d6d03fd994e3 (patch) | |
| tree | 6f87852b9d14e479ea2c7ef92de35c3118a0fd1e /compiler/optimizing/linearize_test.cc | |
| parent | 6e4753f0bc55655e2e178cb16d6a232ebd055543 (diff) | |
| parent | b059c8a044ed3ede1a0eea4b1e92008ced90c013 (diff) | |
Merge "Revert "ART: Refactor SsaBuilder for more precise typing info""
am: b059c8a044
* commit 'b059c8a044ed3ede1a0eea4b1e92008ced90c013':
Revert "ART: Refactor SsaBuilder for more precise typing info"
Diffstat (limited to 'compiler/optimizing/linearize_test.cc')
| -rw-r--r-- | compiler/optimizing/linearize_test.cc | 21 |
1 files changed, 11 insertions, 10 deletions
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 <size_t number_of_blocks> 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<const X86InstructionSetFeatures> 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 // | |