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:
9dda8f2
)
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 13:26:01 +0000
(14:26 +0100)
Change-Id: I16c64abc26c64815da4cb4034276d60e9bfb6996
compiler/optimizing/codegen_test.cc
patch
|
blob
|
history
diff --git
a/compiler/optimizing/codegen_test.cc
b/compiler/optimizing/codegen_test.cc
index
ca85cf5
..
4fbb51d
100644
(file)
--- a/
compiler/optimizing/codegen_test.cc
+++ b/
compiler/optimizing/codegen_test.cc
@@
-192,7
+192,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();