summaryrefslogtreecommitdiff
path: root/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-11-29 18:35:13 +0000
committerAndrew Trick <atrick@apple.com>2012-11-29 18:35:13 +0000
commitffc9ee4bbfbde7adbfe76ae768c4545be541cded (patch)
treeea96a38f1ae5bfef5c28c355e34d20f1ffdbc87a /lib/Analysis/ScalarEvolution.cpp
parentd6f62c8da5aa4f3388cec1542309ffa623cac601 (diff)
downloadllvm-ffc9ee4bbfbde7adbfe76ae768c4545be541cded.tar.gz
llvm-ffc9ee4bbfbde7adbfe76ae768c4545be541cded.tar.bz2
llvm-ffc9ee4bbfbde7adbfe76ae768c4545be541cded.tar.xz
Improve isImpliedCond comment a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolution.cpp')
-rw-r--r--lib/Analysis/ScalarEvolution.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp
index e3ec2685cc..852eb2b13d 100644
--- a/lib/Analysis/ScalarEvolution.cpp
+++ b/lib/Analysis/ScalarEvolution.cpp
@@ -6120,8 +6120,8 @@ bool ScalarEvolution::isImpliedCond(ICmpInst::Predicate Pred,
getTypeSizeInBits(ICI->getOperand(0)->getType()))
return false;
- // Now that we found a conditional branch that dominates the loop, check to
- // see if it is the comparison we are looking for.
+ // Now that we found a conditional branch that dominates the loop or controls
+ // the loop latch. Check to see if it is the comparison we are looking for.
ICmpInst::Predicate FoundPred;
if (Inverse)
FoundPred = ICI->getInversePredicate();