Improve isImpliedCond comment a bit.
authorAndrew Trick <atrick@apple.com>
Thu, 29 Nov 2012 18:35:13 +0000 (18:35 +0000)
committerAndrew Trick <atrick@apple.com>
Thu, 29 Nov 2012 18:35:13 +0000 (18:35 +0000)
llvm-svn: 168914

llvm/lib/Analysis/ScalarEvolution.cpp

index e3ec268..852eb2b 100644 (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();