aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/CodeGenPrepare.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-03-12 21:13:42 +0000
committerDuncan Sands <baldrick@free.fr>2009-03-12 21:13:42 +0000
commitd8cf19377e29c070fac1199d3a2c6653b26c19b4 (patch)
tree621b35004e94e39fd3e001092f6df57657ca66f2 /lib/Transforms/Scalar/CodeGenPrepare.cpp
parentf9c9d7e0655cd22666013d449a4ffb2c16da83d8 (diff)
downloadexternal_llvm-d8cf19377e29c070fac1199d3a2c6653b26c19b4.zip
external_llvm-d8cf19377e29c070fac1199d3a2c6653b26c19b4.tar.gz
external_llvm-d8cf19377e29c070fac1199d3a2c6653b26c19b4.tar.bz2
Revert commit 66140 since it caused several failures
in the Ada testcase. Reverting this only covers up the real problem, which is a nasty conceptual difficulty in the phi elimination pass: when eliminating phi nodes in landing pads, the register copies need to come before the invoke, not at the end of the basic block which is too late... See PR3784. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66826 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/CodeGenPrepare.cpp')
-rw-r--r--lib/Transforms/Scalar/CodeGenPrepare.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Transforms/Scalar/CodeGenPrepare.cpp b/lib/Transforms/Scalar/CodeGenPrepare.cpp
index 85e5766..1f3a13c 100644
--- a/lib/Transforms/Scalar/CodeGenPrepare.cpp
+++ b/lib/Transforms/Scalar/CodeGenPrepare.cpp
@@ -327,12 +327,6 @@ static void SplitEdgeNicely(TerminatorInst *TI, unsigned SuccNum,
assert(isa<PHINode>(Dest->begin()) &&
"This should only be called if Dest has a PHI!");
- // Do not split edges to EH landing pads.
- if (InvokeInst *Invoke = dyn_cast<InvokeInst>(TI)) {
- if (Invoke->getSuccessor(1) == Dest)
- return;
- }
-
// As a hack, never split backedges of loops. Even though the copy for any
// PHIs inserted on the backedge would be dead for exits from the loop, we
// assume that the cost of *splitting* the backedge would be too high.