mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 07:05:03 +00:00
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:
parent
4468c1fd1c
commit
a66696ef0d
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user