1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

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 efd7078b03
commit ad1e0a2eac

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