Change the argument to getIntegerSCEV to be an int64_t, rather
authorDan Gohman <gohman@apple.com>
Thu, 4 Feb 2010 02:43:51 +0000 (02:43 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 4 Feb 2010 02:43:51 +0000 (02:43 +0000)
than int. This will make it more convenient for LSR, which does
a lot of things with int64_t offsets.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95281 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/ScalarEvolution.h
lib/Analysis/ScalarEvolution.cpp

index d1bd3c871feffddd6aa650d2a84ba1b0f683c8d2..383ee88ad28d1fcd98efdad7fbce42371219b602 100644 (file)
@@ -517,7 +517,7 @@ namespace llvm {
 
     /// getIntegerSCEV - Given a SCEVable type, create a constant for the
     /// specified signed integer value and return a SCEV for the constant.
-    const SCEV *getIntegerSCEV(int Val, const Type *Ty);
+    const SCEV *getIntegerSCEV(int64_t Val, const Type *Ty);
 
     /// getUMaxFromMismatchedTypes - Promote the operands to the wider of
     /// the types using zero-extension, and then perform a umax operation
index 81928c1fe6fd9ed3c792ff65b5a98cdfc58b3906..1fb966132bd576b9ad9c38064e18b3b887284545 100644 (file)
@@ -2351,7 +2351,7 @@ const SCEV *ScalarEvolution::getSCEV(Value *V) {
 
 /// getIntegerSCEV - Given a SCEVable type, create a constant for the
 /// specified signed integer value and return a SCEV for the constant.
-const SCEV *ScalarEvolution::getIntegerSCEV(int Val, const Type *Ty) {
+const SCEV *ScalarEvolution::getIntegerSCEV(int64_t Val, const Type *Ty) {
   const IntegerType *ITy = cast<IntegerType>(getEffectiveSCEVType(Ty));
   return getConstant(ConstantInt::get(ITy, Val));
 }