From: Owen Anderson Date: Mon, 31 Mar 2008 01:39:20 +0000 (+0000) Subject: Fix a major bug in the DFS calculation. Thanks for Christopher Lamb for pointing... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=bc91bd34f1d2e4fdfef691fbe9015eabdeec8071;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/StrongPHIElimination.cpp b/lib/CodeGen/StrongPHIElimination.cpp index 05b38bb9931..0c785367168 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);