[llvm-commits] CVS: llvm/lib/Analysis/ConstantRange.cpp ScalarEvolution.cpp
Reid Spencer
reid at x10sys.com
Fri Jan 19 13:14:31 PST 2007
Changes in directory llvm/lib/Analysis:
ConstantRange.cpp updated: 1.32 -> 1.33
ScalarEvolution.cpp updated: 1.89 -> 1.90
---
Log message:
For PR1043: http://llvm.org/PR1043 :
This is the final patch for this PR. It implements some minor cleanup
in the use of IntegerType, to wit:
1. Type::getIntegerTypeMask -> IntegerType::getBitMask
2. Type::Int*Ty changed to IntegerType* from Type*
3. ConstantInt::getType() returns IntegerType* now, not Type*
This also fixes PR1120: http://llvm.org/PR1120 .
Patch by Sheng Zhou.
---
Diffs of the changes: (+2 -1)
ConstantRange.cpp | 1 +
ScalarEvolution.cpp | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
Index: llvm/lib/Analysis/ConstantRange.cpp
diff -u llvm/lib/Analysis/ConstantRange.cpp:1.32 llvm/lib/Analysis/ConstantRange.cpp:1.33
--- llvm/lib/Analysis/ConstantRange.cpp:1.32 Sun Jan 14 20:27:26 2007
+++ llvm/lib/Analysis/ConstantRange.cpp Fri Jan 19 15:13:56 2007
@@ -26,6 +26,7 @@
#include "llvm/Instruction.h"
#include "llvm/Instructions.h"
#include "llvm/Type.h"
+#include "llvm/DerivedTypes.h"
#include "llvm/Support/Streams.h"
#include <ostream>
using namespace llvm;
Index: llvm/lib/Analysis/ScalarEvolution.cpp
diff -u llvm/lib/Analysis/ScalarEvolution.cpp:1.89 llvm/lib/Analysis/ScalarEvolution.cpp:1.90
--- llvm/lib/Analysis/ScalarEvolution.cpp:1.89 Mon Jan 15 14:27:18 2007
+++ llvm/lib/Analysis/ScalarEvolution.cpp Fri Jan 19 15:13:56 2007
@@ -1333,7 +1333,7 @@
if (SCEVTruncateExpr *T = dyn_cast<SCEVTruncateExpr>(S))
return GetConstantFactor(T->getOperand()) &
- T->getType()->getIntegerTypeMask();
+ cast<IntegerType>(T->getType())->getBitMask();
if (SCEVZeroExtendExpr *E = dyn_cast<SCEVZeroExtendExpr>(S))
return GetConstantFactor(E->getOperand());
More information about the llvm-commits
mailing list