diff options
author | Dan Gohman <gohman@apple.com> | 2009-02-18 16:43:19 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-02-18 16:43:19 +0000 |
commit | b317143ba851ce2853fb262fb2185ef5f1be030d (patch) | |
tree | 9af79b5ff44a8c5cb55eb696110d26a66e77ebb3 /include | |
parent | 38deef9ce58b33dba34515f23fb7dbde02164c77 (diff) | |
download | llvm-b317143ba851ce2853fb262fb2185ef5f1be030d.tar.gz llvm-b317143ba851ce2853fb262fb2185ef5f1be030d.tar.bz2 llvm-b317143ba851ce2853fb262fb2185ef5f1be030d.tar.xz |
Clarify the definition of "latch block" in a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64916 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/LoopInfo.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Analysis/LoopInfo.h b/include/llvm/Analysis/LoopInfo.h index 3961675980..93bfcad1bc 100644 --- a/include/llvm/Analysis/LoopInfo.h +++ b/include/llvm/Analysis/LoopInfo.h @@ -307,10 +307,10 @@ public: return Out; } - /// getLoopLatch - If there is a latch block for this loop, return it. A - /// latch block is the canonical backedge for a loop. A loop header in normal - /// form has two edges into it: one from a preheader and one from a latch - /// block. + /// getLoopLatch - If there is a single latch block for this loop, return it. + /// A latch block is a block that contains a branch back to the header. + /// A loop header in normal form has two edges into it: one from a preheader + /// and one from a latch block. BlockT *getLoopLatch() const { BlockT *Header = getHeader(); typedef GraphTraits<Inverse<BlockT*> > InvBlockTraits; |