mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
recommit r108131 (hich has been backed out in r108135) with a fix
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108137 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4fc719e607
commit
639e9e47a2
@ -206,12 +206,13 @@ static BasicBlock *FindObviousSharedDomOf(BasicBlock *SrcBlock,
|
||||
// there is only one other pred, get it, otherwise we can't handle it.
|
||||
PI = pred_begin(DstBlock); PE = pred_end(DstBlock);
|
||||
BasicBlock *DstOtherPred = 0;
|
||||
if (*PI == SrcBlock) {
|
||||
BasicBlock *P = *PI;
|
||||
if (P == SrcBlock) {
|
||||
if (++PI == PE) return 0;
|
||||
DstOtherPred = *PI;
|
||||
if (++PI != PE) return 0;
|
||||
} else {
|
||||
DstOtherPred = *PI;
|
||||
DstOtherPred = P;
|
||||
if (++PI == PE || *PI != SrcBlock || ++PI != PE) return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user