[llvm] 6381127 - [Analysis] Remove unused function stripIntegerCast
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon May 29 12:19:29 PDT 2023
Author: Kazu Hirata
Date: 2023-05-29T12:19:14-07:00
New Revision: 638112737efc3580391a645f301e5c349ff9d043
URL: https://github.com/llvm/llvm-project/commit/638112737efc3580391a645f301e5c349ff9d043
DIFF: https://github.com/llvm/llvm-project/commit/638112737efc3580391a645f301e5c349ff9d043.diff
LOG: [Analysis] Remove unused function stripIntegerCast
The last use was removed by:
commit d5b840131223f2ffef4e48ca769ad1eb7bb1869a
Author: Philip Reames <preames at rivosinc.com>
Date: Thu May 11 08:10:49 2023 -0700
Added:
Modified:
llvm/include/llvm/Analysis/LoopAccessAnalysis.h
llvm/lib/Analysis/LoopAccessAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
index 0258285746d92..a45f117249e69 100644
--- a/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
+++ b/llvm/include/llvm/Analysis/LoopAccessAnalysis.h
@@ -701,8 +701,6 @@ class LoopAccessInfo {
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.
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
index 5a0b1abe96d9c..6c271a8b2f7c5 100644
--- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp
+++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp
@@ -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) {
More information about the llvm-commits
mailing list