[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:30:34 PDT 2024
================
@@ -2505,20 +2503,17 @@ void LoopAccessInfo::analyzeLoop(AAResults *AA, LoopInfo *LI,
} // Next instr.
} // Next block.
- if (HasComplexMemInst) {
- CanVecMem = false;
- return;
- }
+ if (HasComplexMemInst)
+ return false;
// Now we have two lists that hold the loads and the stores.
// Next, we find the pointers that they use.
// Check if we see any stores. If there are no stores, then we don't
// care if the pointers are *restrict*.
- if (!Stores.size()) {
+ if (!NumStores) {
----------------
fhahn wrote:
unrelated change?
https://github.com/llvm/llvm-project/pull/93824
More information about the llvm-commits
mailing list