[llvm] [DA] factor out repetitive code in GCD test (NFCI) (PR #189461)

Ruoyu Qiu via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 31 00:29:25 PDT 2026


================
@@ -2212,6 +2212,25 @@ bool DependenceInfo::accumulateCoefficientsGCD(const SCEV *Expr,
   return accumulateCoefficientsGCD(Start, CurLoop, CurLoopCoeff, RunningGCD);
 }
 
+// Compute running GCD and record source constant.
----------------
cabbaken wrote:

The comment ("source" should be deleted now) needs to be refined.

https://github.com/llvm/llvm-project/pull/189461


More information about the llvm-commits mailing list