mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-15 00:38:42 +00:00
fit in 80 cols
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111348 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2bde78206d
commit
c7e31fcf49
@ -257,7 +257,7 @@ void llvm::RemoveSuccessor(TerminatorInst *TI, unsigned SuccNum) {
|
|||||||
case Instruction::Switch: // Should remove entry
|
case Instruction::Switch: // Should remove entry
|
||||||
default:
|
default:
|
||||||
case Instruction::Ret: // Cannot happen, has no successors!
|
case Instruction::Ret: // Cannot happen, has no successors!
|
||||||
llvm_unreachable("Unhandled terminator instruction type in RemoveSuccessor!");
|
llvm_unreachable("Unhandled terminator inst type in RemoveSuccessor!");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (NewTI) // If it's a different instruction, replace.
|
if (NewTI) // If it's a different instruction, replace.
|
||||||
@ -411,7 +411,8 @@ BasicBlock *llvm::SplitBlockPredecessors(BasicBlock *BB,
|
|||||||
DominatorTree *DT = P ? P->getAnalysisIfAvailable<DominatorTree>() : 0;
|
DominatorTree *DT = P ? P->getAnalysisIfAvailable<DominatorTree>() : 0;
|
||||||
if (DT)
|
if (DT)
|
||||||
DT->splitBlock(NewBB);
|
DT->splitBlock(NewBB);
|
||||||
if (DominanceFrontier *DF = P ? P->getAnalysisIfAvailable<DominanceFrontier>():0)
|
if (DominanceFrontier *DF =
|
||||||
|
P ? P->getAnalysisIfAvailable<DominanceFrontier>() : 0)
|
||||||
DF->splitBlock(NewBB);
|
DF->splitBlock(NewBB);
|
||||||
|
|
||||||
// Insert a new PHI node into NewBB for every PHI node in BB and that new PHI
|
// Insert a new PHI node into NewBB for every PHI node in BB and that new PHI
|
||||||
|
Loading…
x
Reference in New Issue
Block a user