[llvm] [SLP] Replace most uses of for_each with range-for loops. NFC (PR #136146)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 17 08:43:30 PDT 2025


================
@@ -15325,7 +15325,9 @@ BoUpSLP::isGatherShuffledSingleRegisterEntry(
     // tree.
     Entries.push_back(FirstEntries.front());
     // Update mapping between values and corresponding tree entries.
-    for_each(UsedValuesEntry, [&](auto &P) { P.second = 0; });
+    for (auto &P : UsedValuesEntry) {
+      P.second = 0;
+    }
----------------
alexey-bataev wrote:

Drop braces

https://github.com/llvm/llvm-project/pull/136146


More information about the llvm-commits mailing list