Skip to content

Commit 6575a92

Browse files
committed
[cfg] Make the docs for splitBasicBlockAndBranch clearer.
I found myself worrying about the return type, so this just makes the semantics of the return type explicit.
1 parent 2df3652 commit 6575a92

File tree

1 file changed

+3
-2
lines changed
  • include/swift/SILOptimizer/Utils

1 file changed

+3
-2
lines changed

include/swift/SILOptimizer/Utils/CFG.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ bool rotateLoop(SILLoop *L, DominanceInfo *DT, SILLoopInfo *LI,
9696
bool RotateSingleBlockLoops, SILBasicBlock *UpTo,
9797
bool ShouldVerify);
9898

99-
/// Splits the basic block before the instruction with an unconditional
100-
/// branch and updates the dominator tree and loop info.
99+
/// Splits the basic block before the instruction with an unconditional branch
100+
/// and updates the dominator tree and loop info. Returns the new, branched to
101+
/// block that contains the end of \p SplitBeforeInst's block.
101102
SILBasicBlock *splitBasicBlockAndBranch(SILBuilder &B,
102103
SILInstruction *SplitBeforeInst,
103104
DominanceInfo *DT, SILLoopInfo *LI);

0 commit comments

Comments
 (0)