summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
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
commitfa59403bfd5d673cefdd07956bd4164a92a6bb6d (patch)
tree9b78c7e7ce70e4527b7279783f87c750a9c79741 /llvm/lib/Analysis
parent9a956e8cd2fc01ef20016758cecb3144574eae98 (diff)
downloadbcm5719-llvm-fa59403bfd5d673cefdd07956bd4164a92a6bb6d.tar.gz
bcm5719-llvm-fa59403bfd5d673cefdd07956bd4164a92a6bb6d.zip
Improve isImpliedCond comment a bit.
llvm-svn: 168914
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index e3ec2685cc9..852eb2b13d9 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/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();
OpenPOWER on IntegriCloud