mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 20:34:38 +00:00
simplify
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37541 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e3f653606d
commit
b28aaadfff
@ -708,10 +708,9 @@ static bool BlockDominatesAny(BasicBlock* A, const std::vector<BasicBlock*>& B,
|
||||
void LoopSimplify::UpdateDomInfoForRevectoredPreds(BasicBlock *NewBB,
|
||||
std::vector<BasicBlock*> &PredBlocks) {
|
||||
assert(!PredBlocks.empty() && "No predblocks??");
|
||||
assert(succ_begin(NewBB) != succ_end(NewBB) &&
|
||||
++succ_begin(NewBB) == succ_end(NewBB) &&
|
||||
"NewBB should have a single successor!");
|
||||
BasicBlock *NewBBSucc = *succ_begin(NewBB);
|
||||
assert(NewBB->getTerminator()->getNumSuccessors() == 1
|
||||
&& "NewBB should have a single successor!");
|
||||
BasicBlock *NewBBSucc = NewBB->getTerminator()->getSuccessor(0);
|
||||
DominatorTree &DT = getAnalysis<DominatorTree>();
|
||||
|
||||
// The newly inserted basic block will dominate existing basic blocks iff the
|
||||
|
Loading…
x
Reference in New Issue
Block a user