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
This commit is contained in:
Nick Lewycky 2008-03-09 09:44:38 +00:00
parent 4468c1fd1c
commit a66696ef0d

View File

@ -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];