mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +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();
|
Instruction *I = CS.getInstruction();
|
||||||
|
|
||||||
|
if (!CS.doesNotThrow() && I->getParent()->getUnwindDest())
|
||||||
|
markEdgeExecutable(I->getParent(), I->getParent()->getUnwindDest());
|
||||||
|
|
||||||
if (I->getType() == Type::VoidTy) return;
|
if (I->getType() == Type::VoidTy) return;
|
||||||
|
|
||||||
LatticeVal &IV = ValueState[I];
|
LatticeVal &IV = ValueState[I];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user