[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
================
@@ -3698,7 +3697,7 @@ void LoopVectorizationCostModel::collectLoopUniforms(ElementCount VF) {
// Determine if all users of the induction variable are uniform after
// vectorization.
- auto UniformInd = llvm::all_of(Ind->users(), [&](User *U) -> bool {
+ bool UniformInd = llvm::all_of(Ind->users(), [&](User *U) -> bool {
----------------
fhahn wrote:
while you are editing the line, might as well drop redundant llvm::
```suggestion
bool UniformInd = all_of(Ind->users(), [&](User *U) -> bool {
```
https://github.com/llvm/llvm-project/pull/111532
More information about the llvm-commits
mailing list