From 75359e1e1f0df601b7bde98be327970fcd5b1b1a Mon Sep 17 00:00:00 2001 From: Ryotaro Kasuga Date: Thu, 2 Apr 2026 23:04:31 +0900 Subject: [PATCH] [DA] Add static to analyzeCoefficientsForGCD (NFC) (#190172) --- llvm/lib/Analysis/DependenceAnalysis.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Analysis/DependenceAnalysis.cpp b/llvm/lib/Analysis/DependenceAnalysis.cpp index bf70af068293..2eee99088f60 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(Coefficients)) { const SCEV *Coeff = AddRec->getStepRecurrence(*SE);