mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Minor cleanups and simplifications
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10127 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -153,7 +153,7 @@ BasicBlock *LoopSimplify::SplitBlockPredecessors(BasicBlock *BB,
|
||||
BasicBlock *NewBB = new BasicBlock(BB->getName()+Suffix, BB);
|
||||
|
||||
// The preheader first gets an unconditional branch to the loop header...
|
||||
BranchInst *BI = new BranchInst(BB, 0, 0, NewBB);
|
||||
BranchInst *BI = new BranchInst(BB, NewBB);
|
||||
|
||||
// For every PHI node in the block, insert a PHI node into NewBB where the
|
||||
// incoming values from the out of loop edges are moved to NewBB. We have two
|
||||
@ -379,7 +379,7 @@ void LoopSimplify::InsertUniqueBackedgeBlock(Loop *L) {
|
||||
|
||||
// Create and insert the new backedge block...
|
||||
BasicBlock *BEBlock = new BasicBlock(Header->getName()+".backedge", F);
|
||||
BranchInst *BETerminator = new BranchInst(Header, 0, 0, BEBlock);
|
||||
BranchInst *BETerminator = new BranchInst(Header, BEBlock);
|
||||
|
||||
// Move the new backedge block to right after the last backedge block.
|
||||
Function::iterator InsertPos = BackedgeBlocks.back(); ++InsertPos;
|
||||
|
Reference in New Issue
Block a user