diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-03-09 09:44:38 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-03-09 09:44:38 +0000 |
commit | a66696ef0d6786befc7815cc25b37d2bc5e0010a (patch) | |
tree | c9f344833b8209c87c17873c952e0437b76763e3 /lib | |
parent | 4468c1fd1c3dcc2cca7b881eb9f37f018405d2d9 (diff) |
SCCP also needs to be taught to follow unwind_to
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/SCCP.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp index b1c923c2bd..6493f0e408 100644 --- a/lib/Transforms/Scalar/SCCP.cpp +++ b/lib/Transforms/Scalar/SCCP.cpp @@ -1082,6 +1082,10 @@ void SCCPSolver::visitCallSite(CallSite CS) { } } Instruction *I = CS.getInstruction(); + + if (!CS.doesNotThrow() && I->getParent()->getUnwindDest()) + markEdgeExecutable(I->getParent(), I->getParent()->getUnwindDest()); + if (I->getType() == Type::VoidTy) return; LatticeVal &IV = ValueState[I]; |