Fix a major bug in the DFS calculation. Thanks for Christopher Lamb for pointing this out.

llvm-svn: 48973
This commit is contained in:
Owen Anderson 2008-03-31 01:39:20 +00:00
parent 59a2594f3f
commit f28fc71c93
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ void StrongPHIElimination::computeDFS(MachineFunction& MF) {
} }
bool inserted = false; bool inserted = false;
for (MachineDomTreeNode::iterator I = node->begin(), E = node->end(); for (MachineDomTreeNode::iterator I = currNode->begin(), E = currNode->end();
I != E; ++I) I != E; ++I)
if (!frontier.count(*I) && !visited.count(*I)) { if (!frontier.count(*I) && !visited.count(*I)) {
worklist.push_back(*I); worklist.push_back(*I);