diff options
author | David Brazdil <dbrazdil@google.com> | 2015-03-24 18:49:14 +0000 |
---|---|---|
committer | David Brazdil <dbrazdil@google.com> | 2015-03-24 19:13:13 +0000 |
commit | 10f56cb6b4e39ed0032e9a23b179b557463e65ad (patch) | |
tree | 9f53251569ed32af7add31cf16206f255261b97e /compiler/optimizing/register_allocator_test.cc | |
parent | 3e690d11d26b3ae3891a03cdef88e7c2272109f5 (diff) | |
download | art-10f56cb6b4e39ed0032e9a23b179b557463e65ad.tar.gz art-10f56cb6b4e39ed0032e9a23b179b557463e65ad.tar.bz2 art-10f56cb6b4e39ed0032e9a23b179b557463e65ad.zip |
ART: Fix crash in gtests
SsaLivenessAnalysis was crashing after change of iteration order in
142377 because gtests do not always build reverse post order.
Change-Id: If5ad5b7c52040b119c4415f0b942988049fa3c16
Diffstat (limited to 'compiler/optimizing/register_allocator_test.cc')
-rw-r--r-- | compiler/optimizing/register_allocator_test.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compiler/optimizing/register_allocator_test.cc b/compiler/optimizing/register_allocator_test.cc index b757a3b9b9..7a2d84b056 100644 --- a/compiler/optimizing/register_allocator_test.cc +++ b/compiler/optimizing/register_allocator_test.cc @@ -596,6 +596,8 @@ static HGraph* BuildFieldReturn(ArenaAllocator* allocator, graph->AddBlock(exit); block->AddSuccessor(exit); exit->AddInstruction(new (allocator) HExit()); + + graph->BuildDominatorTree(); return graph; } @@ -658,6 +660,8 @@ static HGraph* BuildTwoSubs(ArenaAllocator* allocator, block->AddInstruction(*second_sub); block->AddInstruction(new (allocator) HExit()); + + graph->BuildDominatorTree(); return graph; } @@ -719,6 +723,8 @@ static HGraph* BuildDiv(ArenaAllocator* allocator, block->AddInstruction(*div); block->AddInstruction(new (allocator) HExit()); + + graph->BuildDominatorTree(); return graph; } |