[llvm] [SCEV] Strip unused Ty arg in getPreStartForExtend (NFC) (PR #218918)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 26 06:07:15 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-analysis
Author: Ramkumar Ramachandra (artagnon)
<details>
<summary>Changes</summary>
To avoid confusion.
---
Full diff: https://github.com/llvm/llvm-project/pull/218918.diff
1 Files Affected:
- (modified) llvm/lib/Analysis/ScalarEvolution.cpp (+2-2)
``````````diff
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index f6ad701ce819e..e74e1ac2523d2 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);
``````````
</details>
https://github.com/llvm/llvm-project/pull/218918
More information about the llvm-commits
mailing list