[llvm-commits] CVS: llvm/lib/Analysis/ScalarEvolution.cpp
Reid Spencer
reid at x10sys.com
Wed Nov 1 17:54:34 PST 2006
Changes in directory llvm/lib/Analysis:
ScalarEvolution.cpp updated: 1.56 -> 1.57
---
Log message:
For PR950: http://llvm.org/PR950 :
Replace the REM instruction with UREM, SREM and FREM.
---
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.56 llvm/lib/Analysis/ScalarEvolution.cpp:1.57
--- llvm/lib/Analysis/ScalarEvolution.cpp:1.56 Wed Nov 1 15:53:12 2006
+++ llvm/lib/Analysis/ScalarEvolution.cpp Wed Nov 1 19:53:58 2006
@@ -2147,7 +2147,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