mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
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:
parent
83ad90a779
commit
bc91bd34f1
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user