Improve isImpliedCond comment a bit.

llvm-svn: 168914
This commit is contained in:
Andrew Trick 2012-11-29 18:35:13 +00:00
parent 9a956e8cd2
commit fa59403bfd
1 changed files with 2 additions and 2 deletions

View File

@ -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();