Add a comment.
authorDan Gohman <gohman@apple.com>
Wed, 14 Apr 2010 16:08:56 +0000 (16:08 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 14 Apr 2010 16:08:56 +0000 (16:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101248 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolution.cpp

index a9a444f93a2b0d7a44abec96dc8539406e5530b4..b8bcdd41654f54054b267a3169b859ac9cdf96f2 100644 (file)
@@ -4634,6 +4634,8 @@ ScalarEvolution::HowFarToNonZero(const SCEV *V, const Loop *L) {
 
 /// getLoopPredecessor - If the given loop's header has exactly one unique
 /// predecessor outside the loop, return it. Otherwise return null.
+/// This is less strict that the loop "preheader" concept, which requires
+/// the predecessor to have only one single successor.
 ///
 BasicBlock *ScalarEvolution::getLoopPredecessor(const Loop *L) {
   BasicBlock *Header = L->getHeader();