summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-14 16:08:56 +0000
committerDan Gohman <gohman@apple.com>2010-04-14 16:08:56 +0000
commit65de3d140d22d74859d85c50c1fe45709b0bbc11 (patch)
tree172a393c4f529a68aea498b3ef654c3fd0c4dcdd /llvm/lib/Analysis
parent4083e9afaf41f9e0e4b515948ff6160091007cea (diff)
downloadbcm5719-llvm-65de3d140d22d74859d85c50c1fe45709b0bbc11.tar.gz
bcm5719-llvm-65de3d140d22d74859d85c50c1fe45709b0bbc11.zip
Add a comment.
llvm-svn: 101248
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index a9a444f93a2..b8bcdd41654 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -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();
OpenPOWER on IntegriCloud