mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
These splits should be done whether they are critical edges or not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@138697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b846192230
commit
8557e6c0c1
@ -145,14 +145,10 @@ void SjLjEHPass::markInvokeCallSite(InvokeInst *II, int InvokeNo,
|
||||
if (isa<PHINode>(II->getUnwindDest()->begin())) {
|
||||
// FIXME: New EH - This if-condition will be always true in the new scheme.
|
||||
if (II->getUnwindDest()->isLandingPad()) {
|
||||
if (isCriticalEdge(II, 1)) {
|
||||
SmallVector<BasicBlock*, 2> NewBBs;
|
||||
SplitLandingPadPredecessors(II->getUnwindDest(), II->getParent(),
|
||||
".1", ".2", this, NewBBs);
|
||||
LPadSuccMap[II] = *succ_begin(NewBBs[0]);
|
||||
} else {
|
||||
LPadSuccMap[II] = II->getUnwindDest();
|
||||
}
|
||||
SmallVector<BasicBlock*, 2> NewBBs;
|
||||
SplitLandingPadPredecessors(II->getUnwindDest(), II->getParent(),
|
||||
".1", ".2", this, NewBBs);
|
||||
LPadSuccMap[II] = *succ_begin(NewBBs[0]);
|
||||
} else {
|
||||
SplitCriticalEdge(II, 1, this);
|
||||
}
|
||||
@ -206,14 +202,10 @@ splitLiveRangesAcrossInvokes(SmallVector<InvokeInst*,16> &Invokes) {
|
||||
|
||||
// FIXME: New EH - This if-condition will be always true in the new scheme.
|
||||
if (II->getUnwindDest()->isLandingPad()) {
|
||||
if (isCriticalEdge(II, 1)) {
|
||||
SmallVector<BasicBlock*, 2> NewBBs;
|
||||
SplitLandingPadPredecessors(II->getUnwindDest(), II->getParent(),
|
||||
".1", ".2", this, NewBBs);
|
||||
LPadSuccMap[II] = *succ_begin(NewBBs[0]);
|
||||
} else {
|
||||
LPadSuccMap[II] = II->getUnwindDest();
|
||||
}
|
||||
SmallVector<BasicBlock*, 2> NewBBs;
|
||||
SplitLandingPadPredecessors(II->getUnwindDest(), II->getParent(),
|
||||
".1", ".2", this, NewBBs);
|
||||
LPadSuccMap[II] = *succ_begin(NewBBs[0]);
|
||||
} else {
|
||||
SplitCriticalEdge(II, 1, this);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user