Remove getIntegerSCEV; it's redundant with getConstant, and getConstant
authorDan Gohman <gohman@apple.com>
Fri, 18 Jun 2010 14:33:50 +0000 (14:33 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 18 Jun 2010 14:33:50 +0000 (14:33 +0000)
is more consistent with the ConstantInt API.

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

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

index d3a8d8f4fe51114c2c061d6a9a914c75ba2a2210..00b95c9b1e4c5b6fd0f537c092a5b9deadd22305 100644 (file)
@@ -530,10 +530,6 @@ namespace llvm {
     /// widening.
     const SCEV *getTruncateOrNoop(const SCEV *V, const Type *Ty);
 
-    /// getIntegerSCEV - Given a SCEVable type, create a constant for the
-    /// specified signed integer value and return a SCEV for the constant.
-    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
     /// with them.
index 0d0b9316a378310055f01b1dfe094285ad4afdbf..b2ac2aec643ee52cd55a0ae57c0a9e5c77f37e02 100644 (file)
@@ -2394,13 +2394,6 @@ const SCEV *ScalarEvolution::getSCEV(Value *V) {
   return S;
 }
 
-/// 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(int64_t Val, const Type *Ty) {
-  const IntegerType *ITy = cast<IntegerType>(getEffectiveSCEVType(Ty));
-  return getConstant(ConstantInt::get(ITy, Val));
-}
-
 /// getNegativeSCEV - Return a SCEV corresponding to -V = -1*V
 ///
 const SCEV *ScalarEvolution::getNegativeSCEV(const SCEV *V) {