[llvm] LAA: refactor analyzeLoop to return bool (NFC) (PR #93824)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 11 03:39:45 PDT 2024


================
@@ -704,9 +704,10 @@ class LoopAccessInfo {
   const PredicatedScalarEvolution &getPSE() const { return *PSE; }
 
 private:
-  /// Analyze the loop.
-  void analyzeLoop(AAResults *AA, LoopInfo *LI,
-                   const TargetLibraryInfo *TLI, DominatorTree *DT);
+  /// Analyze the loop. Return a boolean indicating whether the memory can be
----------------
fhahn wrote:

Might be simpler to say `Returns true if all memory accesses in the loop can be vectorized.`

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


More information about the llvm-commits mailing list