diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2015-06-24 14:25:09 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2015-06-24 16:41:07 +0100 |
commit | 0fd292ddd463f1acf26b2b17d34d9b5a4ba93985 (patch) | |
tree | 9ab6f8d2bc769ca50564f9bc9c3fd3a7181c05c2 /compiler | |
parent | 18b236e5261d2b1f312e632a4d3bb2273c8bf641 (diff) | |
download | art-0fd292ddd463f1acf26b2b17d34d9b5a4ba93985.zip art-0fd292ddd463f1acf26b2b17d34d9b5a4ba93985.tar.gz art-0fd292ddd463f1acf26b2b17d34d9b5a4ba93985.tar.bz2 |
Fix codegen_test after DCE fix.
(cherry picked from commit ea80942c39cb5e9bc3e38a388583d1646c1e2a3f)
bug:22031382
Change-Id: If410045779adb9e7e611af22c988232b5bf9a902
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/optimizing/codegen_test.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/optimizing/codegen_test.cc b/compiler/optimizing/codegen_test.cc index bfed1a8..4db3b43 100644 --- a/compiler/optimizing/codegen_test.cc +++ b/compiler/optimizing/codegen_test.cc @@ -180,7 +180,10 @@ static void RunCodeOptimized(CodeGenerator* codegen, std::function<void(HGraph*)> hook_before_codegen, bool has_result, Expected expected) { - graph->BuildDominatorTree(); + // Tests may have already computed it. + if (graph->GetReversePostOrder().IsEmpty()) { + graph->BuildDominatorTree(); + } SsaLivenessAnalysis liveness(graph, codegen); liveness.Analyze(); |