Minor code simplification.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@104232 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2010-05-20 16:23:28 +00:00
parent e5e4ff974d
commit 4766744072

View File

@ -467,14 +467,14 @@ static const SCEV *getExactSDiv(const SCEV *LHS, const SCEV *RHS,
bool Found = false;
for (SCEVMulExpr::op_iterator I = Mul->op_begin(), E = Mul->op_end();
I != E; ++I) {
const SCEV *S = *I;
if (!Found)
if (const SCEV *Q = getExactSDiv(*I, RHS, SE,
if (const SCEV *Q = getExactSDiv(S, RHS, SE,
IgnoreSignificantBits)) {
Ops.push_back(Q);
S = Q;
Found = true;
continue;
}
Ops.push_back(*I);
Ops.push_back(S);
}
return Found ? SE.getMulExpr(Ops) : 0;
}