[Analysis] Remove unused function stripIntegerCast
authorKazu Hirata <kazu@google.com>
Mon, 29 May 2023 19:19:14 +0000 (12:19 -0700)
committerKazu Hirata <kazu@google.com>
Mon, 29 May 2023 19:19:14 +0000 (12:19 -0700)
The last use was removed by:

  commit d5b840131223f2ffef4e48ca769ad1eb7bb1869a
  Author: Philip Reames <preames@rivosinc.com>
  Date:   Thu May 11 08:10:49 2023 -0700

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

index 0258285..a45f117 100644 (file)
@@ -701,8 +701,6 @@ private:
   DenseMap<Value *, const SCEV *> SymbolicStrides;
 };
 
-Value *stripIntegerCast(Value *V);
-
 /// Return the SCEV corresponding to a pointer with the symbolic stride
 /// replaced with constant one, assuming the SCEV predicate associated with
 /// \p PSE is true.
index 5a0b1ab..6c271a8 100644 (file)
@@ -146,13 +146,6 @@ bool VectorizerParams::isInterleaveForced() {
   return ::VectorizationInterleave.getNumOccurrences() > 0;
 }
 
-Value *llvm::stripIntegerCast(Value *V) {
-  if (auto *CI = dyn_cast<CastInst>(V))
-    if (CI->getOperand(0)->getType()->isIntegerTy())
-      return CI->getOperand(0);
-  return V;
-}
-
 const SCEV *llvm::replaceSymbolicStrideSCEV(PredicatedScalarEvolution &PSE,
                                             const DenseMap<Value *, const SCEV *> &PtrToStride,
                                             Value *Ptr) {