diff options
| author | Alex Light <allight@google.com> | 2015-12-15 17:30:30 -0800 |
|---|---|---|
| committer | Alex Light <allight@google.com> | 2015-12-15 17:40:08 -0800 |
| commit | 68289a531484d26214e09f1eadd9833531a3bc3c (patch) | |
| tree | 6f87852b9d14e479ea2c7ef92de35c3118a0fd1e /compiler/optimizing/dead_code_elimination_test.cc | |
| parent | bc90a0538e56f98b8e138cb622e6b9d834244ad9 (diff) | |
| download | art-68289a531484d26214e09f1eadd9833531a3bc3c.tar.gz art-68289a531484d26214e09f1eadd9833531a3bc3c.tar.bz2 art-68289a531484d26214e09f1eadd9833531a3bc3c.zip | |
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
Diffstat (limited to 'compiler/optimizing/dead_code_elimination_test.cc')
| -rw-r--r-- | compiler/optimizing/dead_code_elimination_test.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/compiler/optimizing/dead_code_elimination_test.cc b/compiler/optimizing/dead_code_elimination_test.cc index f0f98efadb..2c6a1ef63d 100644 --- a/compiler/optimizing/dead_code_elimination_test.cc +++ b/compiler/optimizing/dead_code_elimination_test.cc @@ -26,8 +26,6 @@ namespace art { -class DeadCodeEliminationTest : public CommonCompilerTest {}; - static void TestCode(const uint16_t* data, const std::string& expected_before, const std::string& expected_after) { @@ -36,7 +34,7 @@ static void TestCode(const uint16_t* data, HGraph* graph = CreateCFG(&allocator, data); ASSERT_NE(graph, nullptr); - TransformToSsa(graph); + graph->TryBuildingSsa(); StringPrettyPrinter printer_before(graph); printer_before.VisitInsertionOrder(); @@ -57,6 +55,7 @@ static void TestCode(const uint16_t* data, ASSERT_EQ(actual_after, expected_after); } + /** * Small three-register program. * @@ -70,7 +69,7 @@ static void TestCode(const uint16_t* data, * L1: v2 <- v0 + v1 5. add-int v2, v0, v1 * return-void 7. return */ -TEST_F(DeadCodeEliminationTest, AdditionAndConditionalJump) { +TEST(DeadCodeElimination, AdditionAndConditionalJump) { const uint16_t data[] = THREE_REGISTERS_CODE_ITEM( Instruction::CONST_4 | 1 << 8 | 1 << 12, Instruction::CONST_4 | 0 << 8 | 0 << 12, @@ -132,7 +131,7 @@ TEST_F(DeadCodeEliminationTest, AdditionAndConditionalJump) { * L3: v2 <- v1 + 4 11. add-int/lit16 v2, v1, #+4 * return 13. return-void */ -TEST_F(DeadCodeEliminationTest, AdditionsAndInconditionalJumps) { +TEST(DeadCodeElimination, AdditionsAndInconditionalJumps) { const uint16_t data[] = THREE_REGISTERS_CODE_ITEM( Instruction::CONST_4 | 0 << 8 | 0 << 12, Instruction::CONST_4 | 1 << 8 | 1 << 12, |
