OSDN Git Service
(root)
/
android-x86
/
art.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18b236e
)
Fix codegen_test after DCE fix.
author
Nicolas Geoffray
<ngeoffray@google.com>
Wed, 24 Jun 2015 13:25:09 +0000
(14:25 +0100)
committer
Nicolas Geoffray
<ngeoffray@google.com>
Wed, 24 Jun 2015 15:41:07 +0000
(16:41 +0100)
(cherry picked from commit
ea80942c39cb5e9bc3e38a388583d1646c1e2a3f
)
bug:
22031382
Change-Id: If410045779adb9e7e611af22c988232b5bf9a902
compiler/optimizing/codegen_test.cc
patch
|
blob
|
history
diff --git
a/compiler/optimizing/codegen_test.cc
b/compiler/optimizing/codegen_test.cc
index
bfed1a8
..
4db3b43
100644
(file)
--- 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();