diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-02 23:31:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-02 23:31:38 +0000 |
commit | 17de4149655687f4ca5578e5ef96844019611c3b (patch) | |
tree | 177ec71bbfcdd465132aaac3ac43a36539284518 /lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | f5e982daa8a83b4fcadccdf67b18889cfdcdf77d (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22606 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index d8ede2734e..e4c0f7ed20 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/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 |