summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-02 23:31:38 +0000
committerChris Lattner <sabre@nondot.org>2005-08-02 23:31:38 +0000
commitac594de8dcbe344b2790f85285666a47ec5621a8 (patch)
tree68cee1cf5fb82077212ea012c7017d25fdbf4d76 /llvm/lib/Transforms
parenteee90f7eb45b7bf201aefbb2663cedcc4240ceab (diff)
downloadbcm5719-llvm-ac594de8dcbe344b2790f85285666a47ec5621a8.tar.gz
bcm5719-llvm-ac594de8dcbe344b2790f85285666a47ec5621a8.zip
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. llvm-svn: 22606
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index d8ede2734e5..e4c0f7ed209 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -894,7 +894,7 @@ bool llvm::SimplifyCFG(BasicBlock *BB) {
// 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
OpenPOWER on IntegriCloud