summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-11-13 11:34:55 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-11-13 11:34:55 +0000
commit729bec89bd8c4368a741359fb882967ce01a6909 (patch)
tree7a144c3e315c6c9ea22afc342f52c4e93a3837ca /lib
parent9fd4e056e433b286f0e6576046ef2242365bfc38 (diff)
downloadllvm-729bec89bd8c4368a741359fb882967ce01a6909.tar.gz
llvm-729bec89bd8c4368a741359fb882967ce01a6909.tar.bz2
llvm-729bec89bd8c4368a741359fb882967ce01a6909.tar.xz
Add a missing doxygen comment for a helper method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144497 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/MachineBlockPlacement.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/MachineBlockPlacement.cpp b/lib/CodeGen/MachineBlockPlacement.cpp
index 3eb2998116..ec0877fc05 100644
--- a/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/lib/CodeGen/MachineBlockPlacement.cpp
@@ -275,6 +275,12 @@ static std::string getBlockNum(MachineBasicBlock *BB) {
}
#endif
+/// \brief Mark a chain's successors as having one fewer preds.
+///
+/// When a chain is being merged into the "placed" chain, this routine will
+/// quickly walk the successors of each block in the chain and mark them as
+/// having one fewer active predecessor. It also adds any successors of this
+/// chain which reach the zero-predecessor state to the worklist passed in.
void MachineBlockPlacement::markChainSuccessors(
BlockChain &Chain,
MachineBasicBlock *LoopHeaderBB,