[llvm-commits] [llvm] r48973 - /llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp
Owen Anderson
resistor at mac.com
Sun Mar 30 18:39:21 PDT 2008
Author: resistor
Date: Sun Mar 30 20:39:20 2008
New Revision: 48973
URL: http://llvm.org/viewvc/llvm-project?rev=48973&view=rev
Log:
Fix a major bug in the DFS calculation. Thanks for Christopher Lamb for pointing this out.
Modified:
llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp
Modified: llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp?rev=48973&r1=48972&r2=48973&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp (original)
+++ llvm/trunk/lib/CodeGen/StrongPHIElimination.cpp Sun Mar 30 20:39:20 2008
@@ -174,7 +174,7 @@
}
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);
More information about the llvm-commits
mailing list