[llvm-commits] CVS: llvm/lib/Analysis/ScalarEvolution.cpp
Reid Spencer
reid at x10sys.com
Thu Dec 21 10:59:31 PST 2006
Changes in directory llvm/lib/Analysis:
ScalarEvolution.cpp updated: 1.75 -> 1.76
---
Log message:
Add a FIXME about signedness.
---
Diffs of the changes: (+2 -0)
ScalarEvolution.cpp | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/lib/Analysis/ScalarEvolution.cpp
diff -u llvm/lib/Analysis/ScalarEvolution.cpp:1.75 llvm/lib/Analysis/ScalarEvolution.cpp:1.76
--- llvm/lib/Analysis/ScalarEvolution.cpp:1.75 Thu Dec 21 00:43:46 2006
+++ llvm/lib/Analysis/ScalarEvolution.cpp Thu Dec 21 12:59:16 2006
@@ -2151,6 +2151,8 @@
Constant *TwoA = ConstantExpr::getMul(A, Two);
// The divisions must be performed as signed divisions.
+ // FIXME:Signedness. These casts can all go away once integer types are
+ // signless.
const Type *SignedTy = NegB->getType()->getSignedVersion();
NegB = ConstantExpr::getBitCast(NegB, SignedTy);
TwoA = ConstantExpr::getBitCast(TwoA, SignedTy);
More information about the llvm-commits
mailing list