[llvm-commits] [SignlessTypes] CVS: llvm/lib/Analysis/ScalarEvolution.cpp
Zhou Sheng
zhousheng00 at gmail.com
Mon Oct 23 11:13:55 PDT 2006
Changes in directory llvm/lib/Analysis:
ScalarEvolution.cpp updated: 1.53.2.3 -> 1.53.2.4
---
Log message:
---
Diffs of the changes: (+1 -1)
ScalarEvolution.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Analysis/ScalarEvolution.cpp
diff -u llvm/lib/Analysis/ScalarEvolution.cpp:1.53.2.3 llvm/lib/Analysis/ScalarEvolution.cpp:1.53.2.4
--- llvm/lib/Analysis/ScalarEvolution.cpp:1.53.2.3 Thu Oct 19 23:27:17 2006
+++ llvm/lib/Analysis/ScalarEvolution.cpp Mon Oct 23 13:13:26 2006
@@ -2148,7 +2148,7 @@
if (SCEVConstant *StartC = dyn_cast<SCEVConstant>(Start)) {
ConstantInt *StartCC = StartC->getValue();
Constant *StartNegC = ConstantExpr::getNeg(StartCC);
- Constant *Rem = ConstantExpr::getRem(StartNegC, StepC->getValue());
+ Constant *Rem = ConstantExpr::getSRem(StartNegC, StepC->getValue());
if (Rem->isNullValue()) {
Constant *Result =ConstantExpr::getSDiv(StartNegC,StepC->getValue());
return SCEVUnknown::get(Result);
More information about the llvm-commits
mailing list