forked from OSchip/llvm-project
Fix a major bug in the DFS calculation. Thanks for Christopher Lamb for pointing this out.
llvm-svn: 48973
This commit is contained in:
parent
59a2594f3f
commit
f28fc71c93
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue