mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-14 00:23:44 +00:00
Misleading comments of SplitBlockAndInsertIfThenElse in BasicBlockUtils.h
The comments of SplitBlockAndInsertIfThenElse say the SplitBefore instruction will stay in the old block. But according to the implementation(split the block at SplitBefore by using splitBasicBlock), the SplitBefore will be moved to the new block. This patch fixes the comments. Patch by Zhe Yu Wu. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@281939 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4f6fc26807
commit
050e90399c
@ -230,8 +230,8 @@ ReturnInst *FoldReturnIntoUncondBranch(ReturnInst *RI, BasicBlock *BB,
|
||||
BasicBlock *Pred);
|
||||
|
||||
/// Split the containing block at the specified instruction - everything before
|
||||
/// and including SplitBefore stays in the old basic block, and everything after
|
||||
/// SplitBefore is moved to a new block. The two blocks are connected by a
|
||||
/// SplitBefore stays in the old basic block, and the rest of the instructions
|
||||
/// in the BB are moved to a new block. The two blocks are connected by a
|
||||
/// conditional branch (with value of Cmp being the condition).
|
||||
/// Before:
|
||||
/// Head
|
||||
|
Loading…
x
Reference in New Issue
Block a user