divide by the result of the gcd

used to fail with 'Step should divide Start with no remainder.'

llvm-svn: 205802
This commit is contained in:
Sebastian Pop 2014-04-08 21:21:13 +00:00
parent 9738e83a7d
commit b2fdacf3f2
1 changed files with 1 additions and 1 deletions

View File

@ -7138,7 +7138,7 @@ public:
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));
}