Clarify the definition of "latch block" in a comment.

llvm-svn: 64916
This commit is contained in:
Dan Gohman 2009-02-18 16:43:19 +00:00
parent 8cab4c44bb
commit 7f1c0afc19
1 changed files with 4 additions and 4 deletions

View File

@ -307,10 +307,10 @@ public:
return Out; return Out;
} }
/// getLoopLatch - If there is a latch block for this loop, return it. A /// getLoopLatch - If there is a single latch block for this loop, return it.
/// latch block is the canonical backedge for a loop. A loop header in normal /// A latch block is a block that contains a branch back to the header.
/// form has two edges into it: one from a preheader and one from a latch /// A loop header in normal form has two edges into it: one from a preheader
/// block. /// and one from a latch block.
BlockT *getLoopLatch() const { BlockT *getLoopLatch() const {
BlockT *Header = getHeader(); BlockT *Header = getHeader();
typedef GraphTraits<Inverse<BlockT*> > InvBlockTraits; typedef GraphTraits<Inverse<BlockT*> > InvBlockTraits;