forked from OSchip/llvm-project
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:
parent
9738e83a7d
commit
b2fdacf3f2
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue