[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


================
@@ -3708,7 +3707,7 @@ void LoopVectorizationCostModel::collectLoopUniforms(ElementCount VF) {
 
     // Determine if all users of the induction variable update instruction are
     // uniform after vectorization.
-    auto UniformIndUpdate =
+    bool UniformIndUpdate =
         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