diff options
author | Kyle Butt <kyle+llvm@iteratee.net> | 2016-07-11 21:37:03 +0000 |
---|---|---|
committer | Kyle Butt <kyle+llvm@iteratee.net> | 2016-07-11 21:37:03 +0000 |
commit | 83a25792c5c2fc658736af63b7fc51172642be01 (patch) | |
tree | 40fd04eb153e71584e29b4c80f3631a91a7c2209 /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | fb82c7bc94bd9e66898a1d03902caf50bd406f58 (diff) | |
download | bcm5719-llvm-83a25792c5c2fc658736af63b7fc51172642be01.tar.gz bcm5719-llvm-83a25792c5c2fc658736af63b7fc51172642be01.zip |
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
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index 6eafcca5ddc..3a18f2afb25 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/lib/CodeGen/BranchFolding.cpp @@ -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; |