[llvm] 75359e1 - [DA] Add static to analyzeCoefficientsForGCD (NFC) (#190172)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 2 07:04:36 PDT 2026
Author: Ryotaro Kasuga
Date: 2026-04-02T14:04:31Z
New Revision: 75359e1e1f0df601b7bde98be327970fcd5b1b1a
URL: https://github.com/llvm/llvm-project/commit/75359e1e1f0df601b7bde98be327970fcd5b1b1a
DIFF: https://github.com/llvm/llvm-project/commit/75359e1e1f0df601b7bde98be327970fcd5b1b1a.diff
LOG: [DA] Add static to analyzeCoefficientsForGCD (NFC) (#190172)
Added:
Modified:
llvm/lib/Analysis/DependenceAnalysis.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/DependenceAnalysis.cpp b/llvm/lib/Analysis/DependenceAnalysis.cpp
index bf70af0682936..2eee99088f606 100644
--- a/llvm/lib/Analysis/DependenceAnalysis.cpp
+++ b/llvm/lib/Analysis/DependenceAnalysis.cpp
@@ -2093,8 +2093,9 @@ bool DependenceInfo::accumulateCoefficientsGCD(const SCEV *Expr,
/// Compute \p RunningGCD and return the start value of the innermost
/// \p SCEVAddRecExpr. In order to calculate the return value we do not
/// return immediately if it is proved that \p RunningGCD = 1.
-const SCEV *analyzeCoefficientsForGCD(const SCEV *Coefficients,
- APInt &RunningGCD, ScalarEvolution *SE) {
+static const SCEV *analyzeCoefficientsForGCD(const SCEV *Coefficients,
+ APInt &RunningGCD,
+ ScalarEvolution *SE) {
while (const SCEVAddRecExpr *AddRec =
dyn_cast<SCEVAddRecExpr>(Coefficients)) {
const SCEV *Coeff = AddRec->getStepRecurrence(*SE);
More information about the llvm-commits
mailing list