diff options
author | David Majnemer <david.majnemer@gmail.com> | 2015-07-10 07:15:17 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2015-07-10 07:15:17 +0000 |
commit | db82d2f33827dc44dc0076ad26a1a0f4638719c5 (patch) | |
tree | 426d1932604bec0dc540456540d91402c644e66a /llvm/lib/Transforms/Scalar/JumpThreading.cpp | |
parent | 0f70ee9017d080e5a068647a8e3717c483c4c51b (diff) | |
download | bcm5719-llvm-db82d2f33827dc44dc0076ad26a1a0f4638719c5.tar.gz bcm5719-llvm-db82d2f33827dc44dc0076ad26a1a0f4638719c5.zip |
Revert the new EH instructions
This reverts commits r241888-r241891, I didn't mean to commit them.
llvm-svn: 241893
Diffstat (limited to 'llvm/lib/Transforms/Scalar/JumpThreading.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/JumpThreading.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/JumpThreading.cpp b/llvm/lib/Transforms/Scalar/JumpThreading.cpp index e845a7f586b..1130d228acb 100644 --- a/llvm/lib/Transforms/Scalar/JumpThreading.cpp +++ b/llvm/lib/Transforms/Scalar/JumpThreading.cpp @@ -669,8 +669,7 @@ bool JumpThreading::ProcessBlock(BasicBlock *BB) { // because now the condition in this block can be threaded through // predecessors of our predecessor block. if (BasicBlock *SinglePred = BB->getSinglePredecessor()) { - const TerminatorInst *TI = SinglePred->getTerminator(); - if (!TI->isExceptional() && TI->getNumSuccessors() == 1 && + if (SinglePred->getTerminator()->getNumSuccessors() == 1 && SinglePred != BB && !hasAddressTakenAndUsed(BB)) { // If SinglePred was a loop header, BB becomes one. if (LoopHeaders.erase(SinglePred)) |