mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Use iterators instead of indices in a few more places.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111143 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -1343,8 +1343,9 @@ const SCEV *ScalarEvolution::getAddExpr(SmallVectorImpl<const SCEV *> &Ops,
|
|||||||
// If HasNSW is true and all the operands are non-negative, infer HasNUW.
|
// If HasNSW is true and all the operands are non-negative, infer HasNUW.
|
||||||
if (!HasNUW && HasNSW) {
|
if (!HasNUW && HasNSW) {
|
||||||
bool All = true;
|
bool All = true;
|
||||||
for (unsigned i = 0, e = Ops.size(); i != e; ++i)
|
for (SmallVectorImpl<const SCEV *>::const_iterator I = Ops.begin(),
|
||||||
if (!isKnownNonNegative(Ops[i])) {
|
E = Ops.end(); I != E; ++I)
|
||||||
|
if (!isKnownNonNegative(*I)) {
|
||||||
All = false;
|
All = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -1707,8 +1708,9 @@ const SCEV *ScalarEvolution::getMulExpr(SmallVectorImpl<const SCEV *> &Ops,
|
|||||||
// If HasNSW is true and all the operands are non-negative, infer HasNUW.
|
// If HasNSW is true and all the operands are non-negative, infer HasNUW.
|
||||||
if (!HasNUW && HasNSW) {
|
if (!HasNUW && HasNSW) {
|
||||||
bool All = true;
|
bool All = true;
|
||||||
for (unsigned i = 0, e = Ops.size(); i != e; ++i)
|
for (SmallVectorImpl<const SCEV *>::const_iterator I = Ops.begin(),
|
||||||
if (!isKnownNonNegative(Ops[i])) {
|
E = Ops.end(); I != E; ++I)
|
||||||
|
if (!isKnownNonNegative(*I)) {
|
||||||
All = false;
|
All = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -2040,8 +2042,9 @@ ScalarEvolution::getAddRecExpr(SmallVectorImpl<const SCEV *> &Operands,
|
|||||||
// If HasNSW is true and all the operands are non-negative, infer HasNUW.
|
// If HasNSW is true and all the operands are non-negative, infer HasNUW.
|
||||||
if (!HasNUW && HasNSW) {
|
if (!HasNUW && HasNSW) {
|
||||||
bool All = true;
|
bool All = true;
|
||||||
for (unsigned i = 0, e = Operands.size(); i != e; ++i)
|
for (SmallVectorImpl<const SCEV *>::const_iterator I = Operands.begin(),
|
||||||
if (!isKnownNonNegative(Operands[i])) {
|
E = Operands.end(); I != E; ++I)
|
||||||
|
if (!isKnownNonNegative(*I)) {
|
||||||
All = false;
|
All = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user