mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-17 07:30:14 +00:00
Improve isImpliedCond comment a bit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168914 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d6f62c8da5
commit
ffc9ee4bbf
@ -6120,8 +6120,8 @@ bool ScalarEvolution::isImpliedCond(ICmpInst::Predicate Pred,
|
|||||||
getTypeSizeInBits(ICI->getOperand(0)->getType()))
|
getTypeSizeInBits(ICI->getOperand(0)->getType()))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// Now that we found a conditional branch that dominates the loop, check to
|
// Now that we found a conditional branch that dominates the loop or controls
|
||||||
// see if it is the comparison we are looking for.
|
// the loop latch. Check to see if it is the comparison we are looking for.
|
||||||
ICmpInst::Predicate FoundPred;
|
ICmpInst::Predicate FoundPred;
|
||||||
if (Inverse)
|
if (Inverse)
|
||||||
FoundPred = ICI->getInversePredicate();
|
FoundPred = ICI->getInversePredicate();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user