summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Pop <spop@codeaurora.org>2014-04-08 21:21:13 +0000
committerSebastian Pop <spop@codeaurora.org>2014-04-08 21:21:13 +0000
commitb2fdacf3f28168f3c2a7bdcea2d4218146851544 (patch)
treed4d3202456f1923f53902565d661f40d74d1acb6
parent9738e83a7da75d6f89d85e00ab915befe049882f (diff)
downloadbcm5719-llvm-b2fdacf3f28168f3c2a7bdcea2d4218146851544.tar.gz
bcm5719-llvm-b2fdacf3f28168f3c2a7bdcea2d4218146851544.zip
divide by the result of the gcd
used to fail with 'Step should divide Start with no remainder.' llvm-svn: 205802
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 6ccf8aac3b8..fdb15629f43 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -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));
}
OpenPOWER on IntegriCloud