[llvm] [NFC][LAA] Minor stylistic/comments improvements (PR #185510)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 16 07:58:39 PDT 2026
================
@@ -2575,12 +2578,13 @@ bool LoopAccessInfo::analyzeLoop(AAResults *AA, const LoopInfo *LI,
HasConvergentOp = true;
}
- // With both a non-vectorizable memory instruction and a convergent
- // operation, found in this loop, no reason to continue the search.
+ // Unsafe to vectorize and we already found a convergent operation, can
+ // early return now.
if (HasComplexMemInst && HasConvergentOp)
return false;
- // Avoid hitting recordAnalysis multiple times.
+ // We know already that the loop is unsafe to vectorize, let's finish our
+ // search for convergent operations.
----------------
fhahn wrote:
```suggestion
// Already unsafe to vectorize; keep scanning for convergent ops.
```
https://github.com/llvm/llvm-project/pull/185510
More information about the llvm-commits
mailing list