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:
parent
efd7078b03
commit
ad1e0a2eac
@ -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
Block a user