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/graph_checker_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/graph_checker_test.cc')
| -rw-r--r-- | compiler/optimizing/graph_checker_test.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/compiler/optimizing/graph_checker_test.cc b/compiler/optimizing/graph_checker_test.cc index d10df4ce3f..fee56c7f9e 100644 --- a/compiler/optimizing/graph_checker_test.cc +++ b/compiler/optimizing/graph_checker_test.cc @@ -17,6 +17,8 @@ #include "graph_checker.h" #include "optimizing_unit_test.h" +#include "gtest/gtest.h" + namespace art { /** @@ -41,6 +43,7 @@ HGraph* CreateSimpleCFG(ArenaAllocator* allocator) { return graph; } + static void TestCode(const uint16_t* data) { ArenaPool pool; ArenaAllocator allocator(&pool); @@ -58,7 +61,8 @@ static void TestCodeSSA(const uint16_t* data) { HGraph* graph = CreateCFG(&allocator, data); ASSERT_NE(graph, nullptr); - TransformToSsa(graph); + graph->BuildDominatorTree(); + graph->TransformToSsa(); SSAChecker ssa_checker(graph); ssa_checker.Run(); @@ -141,9 +145,7 @@ TEST(GraphChecker, BlockEndingWithNonBranchInstruction) { ASSERT_FALSE(graph_checker.IsValid()); } -class SSACheckerTest : public CommonCompilerTest {}; - -TEST_F(SSACheckerTest, SSAPhi) { +TEST(SSAChecker, SSAPhi) { // This code creates one Phi function during the conversion to SSA form. const uint16_t data[] = ONE_REGISTER_CODE_ITEM( Instruction::CONST_4 | 0 | 0, |