Codegen: Fix comment in BranchFolding.cpp
Blocks to be tail-merged may share more than one successor. Correct the comment to state that they share a specific successor, SuccBB, rather than a single successor, which is not true. llvm-svn: 275104
This commit is contained in:
parent
fb82c7bc94
commit
83a25792c5
|
@ -816,14 +816,13 @@ mergeMMOsFromMemoryOperations(MachineBasicBlock::iterator MBBIStartPos,
|
|||
}
|
||||
}
|
||||
|
||||
// See if any of the blocks in MergePotentials (which all have a common single
|
||||
// successor, or all have no successor) can be tail-merged. If there is a
|
||||
// successor, any blocks in MergePotentials that are not tail-merged and
|
||||
// are not immediately before Succ must have an unconditional branch to
|
||||
// Succ added (but the predecessor/successor lists need no adjustment).
|
||||
// The lone predecessor of Succ that falls through into Succ,
|
||||
// See if any of the blocks in MergePotentials (which all have SuccBB as a
|
||||
// successor, or all have no successor if it is null) can be tail-merged.
|
||||
// If there is a successor, any blocks in MergePotentials that are not
|
||||
// tail-merged and are not immediately before Succ must have an unconditional
|
||||
// branch to Succ added (but the predecessor/successor lists need no
|
||||
// adjustment). The lone predecessor of Succ that falls through into Succ,
|
||||
// if any, is given in PredBB.
|
||||
|
||||
bool BranchFolder::TryTailMergeBlocks(MachineBasicBlock *SuccBB,
|
||||
MachineBasicBlock *PredBB) {
|
||||
bool MadeChange = false;
|
||||
|
|
Loading…
Reference in New Issue