diff options
| author | Owen Anderson <resistor@mac.com> | 2008-03-31 01:39:20 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2008-03-31 01:39:20 +0000 |
| commit | f28fc71c9353851e35725c980d0b2ca31b6d4d27 (patch) | |
| tree | eeb85b7cf158b4d96b06de87cd3e8eec807acb30 /llvm/lib/CodeGen | |
| parent | 59a2594f3f33a312a9395c096651036ff40e75e6 (diff) | |
| download | bcm5719-llvm-f28fc71c9353851e35725c980d0b2ca31b6d4d27.tar.gz bcm5719-llvm-f28fc71c9353851e35725c980d0b2ca31b6d4d27.zip | |
Fix a major bug in the DFS calculation. Thanks for Christopher Lamb for pointing this out.
llvm-svn: 48973
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/StrongPHIElimination.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StrongPHIElimination.cpp b/llvm/lib/CodeGen/StrongPHIElimination.cpp index 05b38bb9931..0c785367168 100644 --- a/llvm/lib/CodeGen/StrongPHIElimination.cpp +++ b/llvm/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); |

