mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
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:
parent
e5e4ff974d
commit
4766744072
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user