[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:41 PDT 2024
================
@@ -3221,7 +3221,7 @@ void LoopVectorizationCostModel::collectLoopScalars(ElementCount VF) {
// Determine if all users of the induction variable update instruction are
// scalar after vectorization.
- auto ScalarIndUpdate =
+ bool ScalarIndUpdate =
llvm::all_of(IndUpdate->users(), [&](User *U) -> bool {
----------------
fhahn wrote:
while you are editing around here, might as well drop redundant llvm::
```suggestion
all_of(IndUpdate->users(), [&](User *U) -> bool {
```
https://github.com/llvm/llvm-project/pull/111532
More information about the llvm-commits
mailing list