Minor code simplification.

llvm-svn: 104232
This commit is contained in:
Dan Gohman 2010-05-20 16:23:28 +00:00
parent 29790edb93
commit 6b733fc189
1 changed files with 4 additions and 4 deletions

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;
}