[llvm] r205802 - divide by the result of the gcd
Sebastian Pop
spop at codeaurora.org
Tue Apr 8 14:21:14 PDT 2014
Author: spop
Date: Tue Apr 8 16:21:13 2014
New Revision: 205802
URL: http://llvm.org/viewvc/llvm-project?rev=205802&view=rev
Log:
divide by the result of the gcd
used to fail with 'Step should divide Start with no remainder.'
Modified:
llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=205802&r1=205801&r2=205802&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Tue Apr 8 16:21:13 2014
@@ -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));
}
More information about the llvm-commits
mailing list