[llvm-commits] CVS: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Aug 2 16:31:50 PDT 2005
Changes in directory llvm/lib/Transforms/Utils:
SimplifyCFG.cpp updated: 1.74 -> 1.75
---
Log message:
Disable this patch:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20050801/027345.html
This breaks real programs and only fixes an obscure regression testcase. A
real fix is in development.
---
Diffs of the changes: (+1 -1)
SimplifyCFG.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
diff -u llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.74 llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.75
--- llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1.74 Tue Aug 2 18:29:23 2005
+++ llvm/lib/Transforms/Utils/SimplifyCFG.cpp Tue Aug 2 18:31:38 2005
@@ -894,7 +894,7 @@
// Move all PHI nodes in BB to Succ if they are alive, otherwise
// delete them.
while (PHINode *PN = dyn_cast<PHINode>(&BB->front()))
- if (PN->use_empty() || Succ->getSinglePredecessor() == 0) {
+ if (PN->use_empty() /*|| Succ->getSinglePredecessor() == 0*/) {
// We can only move the PHI node into Succ if BB dominates Succ.
// Since BB only has a single successor (Succ), the PHI nodes
// will dominate Succ, unless Succ has multiple predecessors. In
More information about the llvm-commits
mailing list