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
This commit is contained in:
Owen Anderson 2008-03-31 01:39:20 +00:00
parent 83ad90a779
commit bc91bd34f1

View File

@ -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);