[llvm] [LV][NFC] Improve readability with `bool` instead of `auto` (PR #111532)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 8 12:23:40 PDT 2024
================
@@ -3204,7 +3204,7 @@ void LoopVectorizationCostModel::collectLoopScalars(ElementCount VF) {
// Determine if all users of the induction variable are scalar after
// vectorization.
- auto ScalarInd = llvm::all_of(Ind->users(), [&](User *U) -> bool {
+ bool ScalarInd = llvm::all_of(Ind->users(), [&](User *U) -> bool {
----------------
fhahn wrote:
while you are editing the line, might as well drop redundant `llvm::`
```suggestion
bool ScalarInd = llvm::all_of(Ind->users(), [&](User *U) -> bool {
```
https://github.com/llvm/llvm-project/pull/111532
More information about the llvm-commits
mailing list