diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-21 16:52:05 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-21 16:52:05 +0000 |
commit | 108e4ab159b59a616b0868e396dc7ddc1fb48616 (patch) | |
tree | fa6892850c59a118e0538ff21d0beb01f2d5ce0b /lib/Transforms/Utils/LoopSimplify.cpp | |
parent | 2436eda94ac811d338a03c50ef82b66e37ddd56f (diff) |
Minor cleanups and simplifications
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10127 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/LoopSimplify.cpp')
-rw-r--r-- | lib/Transforms/Utils/LoopSimplify.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index 46f2beb34b..60e35d5ca9 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/lib/Transforms/Utils/LoopSimplify.cpp @@ -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; |