aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2008-03-31 01:39:20 +0000
committerOwen Anderson <resistor@mac.com>2008-03-31 01:39:20 +0000
commit8c3448af500b005ef2dff3f8ca858fe0f53f4f1a (patch)
tree8d4b88bc80b8a7e24d2b5433d054cdee886ef17e
parentdf5b3617cfe24135225e6052cc9d8603682b023e (diff)
downloadexternal_llvm-8c3448af500b005ef2dff3f8ca858fe0f53f4f1a.zip
external_llvm-8c3448af500b005ef2dff3f8ca858fe0f53f4f1a.tar.gz
external_llvm-8c3448af500b005ef2dff3f8ca858fe0f53f4f1a.tar.bz2
Fix a major bug in the DFS calculation. Thanks for Christopher Lamb for pointing this out.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48973 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/StrongPHIElimination.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp
index 05b38bb..0c78536 100644
--- a/lib/CodeGen/StrongPHIElimination.cpp
+++ b/lib/CodeGen/StrongPHIElimination.cpp
@@ -174,7 +174,7 @@ void StrongPHIElimination::computeDFS(MachineFunction& MF) {
}
bool inserted = false;
- for (MachineDomTreeNode::iterator I = node->begin(), E = node->end();
+ for (MachineDomTreeNode::iterator I = currNode->begin(), E = currNode->end();
I != E; ++I)
if (!frontier.count(*I) && !visited.count(*I)) {
worklist.push_back(*I);