[DA] Add static to analyzeCoefficientsForGCD (NFC) (#190172)

This commit is contained in:
Ryotaro Kasuga 2026-04-02 23:04:31 +09:00 committed by GitHub
parent 91b3b67a9e
commit 75359e1e1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);