summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_checker_test.cc
diff options
context:
space:
mode:
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
commit68289a531484d26214e09f1eadd9833531a3bc3c (patch)
tree6f87852b9d14e479ea2c7ef92de35c3118a0fd1e /compiler/optimizing/graph_checker_test.cc
parentbc90a0538e56f98b8e138cb622e6b9d834244ad9 (diff)
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/graph_checker_test.cc')
-rw-r--r--compiler/optimizing/graph_checker_test.cc10
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,