Skip to content

Commit

Permalink
divide by the result of the gcd
Browse files Browse the repository at this point in the history
used to fail with 'Step should divide Start with no remainder.'

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205802 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Sebastian Pop committed Apr 8, 2014
1 parent 89e11b1 commit a83f787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Analysis/ScalarEvolution.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7138,7 +7138,7 @@ struct SCEVDivision : public SCEVVisitor<SCEVDivision, const SCEV *> {
const SCEV *Res = SCEVGCD::findGCD(SE, Expr->getOperand(i), GCD, &Rem);
if (Rem == Zero) {
PartialGCD = SE.getMulExpr(PartialGCD, Res);
Operands.push_back(divide(SE, Expr->getOperand(i), GCD));
Operands.push_back(divide(SE, Expr->getOperand(i), Res));
} else {
Operands.push_back(Expr->getOperand(i));
}
Expand Down

0 comments on commit a83f787

Please sign in to comment.