Clarify the definition of "latch block" in a comment.
authorDan Gohman <gohman@apple.com>
Wed, 18 Feb 2009 16:43:19 +0000 (16:43 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 18 Feb 2009 16:43:19 +0000 (16:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64916 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/LoopInfo.h

index 3961675980eb02c107c7ffa5bbf54578df0f6f02..93bfcad1bc71acb6c059e2e1ae32d92815fdbe50 100644 (file)
@@ -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;