From: Andrew Trick Date: Thu, 29 Nov 2012 18:35:13 +0000 (+0000) Subject: Improve isImpliedCond comment a bit. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ffc9ee4bbfbde7adbfe76ae768c4545be541cded;p=oota-llvm.git Improve isImpliedCond comment a bit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168914 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index e3ec2685cc9..852eb2b13d9 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();