mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Add r134057 back, but splice the predecessor after the successors phi
nodes. Original message: Let simplify cfg simplify bb with only debug and lifetime intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134182 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2604,7 +2604,7 @@ bool SimplifyCFGOpt::SimplifyUncondBranch(BranchInst *BI, IRBuilder<> &Builder){
|
||||
BasicBlock *BB = BI->getParent();
|
||||
|
||||
// If the Terminator is the only non-phi instruction, simplify the block.
|
||||
BasicBlock::iterator I = BB->getFirstNonPHIOrDbg();
|
||||
BasicBlock::iterator I = BB->getFirstNonPHIOrDbgOrLifetime();
|
||||
if (I->isTerminator() && BB != &BB->getParent()->getEntryBlock() &&
|
||||
TryToSimplifyUncondBranchFromEmptyBlock(BB))
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user