[llvm] 0e1d76a - [SCEV] Strip unused Ty arg in getPreStartForExtend (NFC) (#218918)

via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 26 06:49:47 PDT 2026


Author: Ramkumar Ramachandra
Date: 2026-08-26T13:49:41Z
New Revision: 0e1d76ac65ee27afbc4ed78c27413452217ffea7

URL: https://github.com/llvm/llvm-project/commit/0e1d76ac65ee27afbc4ed78c27413452217ffea7
DIFF: https://github.com/llvm/llvm-project/commit/0e1d76ac65ee27afbc4ed78c27413452217ffea7.diff

LOG: [SCEV] Strip unused Ty arg in getPreStartForExtend (NFC) (#218918)

To avoid confusion.

Added: 
    

Modified: 
    llvm/lib/Analysis/ScalarEvolution.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 1f2b8baafdaf0..6b0951491a88a 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -1298,7 +1298,7 @@ const ExtendOpTraitsBase::GetExtendExprTy ExtendOpTraits<
 // expression "Step + sext/zext(PreIncAR)" is congruent with
 // "sext/zext(PostIncAR)"
 template <typename ExtendOpTy>
-static const SCEV *getPreStartForExtend(const SCEVAddRecExpr *AR, Type *Ty,
+static const SCEV *getPreStartForExtend(const SCEVAddRecExpr *AR,
                                         ScalarEvolution *SE, unsigned Depth) {
   auto WrapType = ExtendOpTraits<ExtendOpTy>::WrapType;
   auto GetExtendExpr = ExtendOpTraits<ExtendOpTy>::GetExtendExpr;
@@ -1380,7 +1380,7 @@ static const SCEV *getExtendAddRecStart(const SCEVAddRecExpr *AR, Type *Ty,
                                         unsigned Depth) {
   auto GetExtendExpr = ExtendOpTraits<ExtendOpTy>::GetExtendExpr;
 
-  const SCEV *PreStart = getPreStartForExtend<ExtendOpTy>(AR, Ty, SE, Depth);
+  const SCEV *PreStart = getPreStartForExtend<ExtendOpTy>(AR, SE, Depth);
   if (!PreStart)
     return (SE->*GetExtendExpr)(AR->getStart(), Ty, Depth);
 


        


More information about the llvm-commits mailing list