[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:31 PDT 2025
================
@@ -19304,8 +19306,11 @@ BoUpSLP::BlockScheduling::tryScheduleBundle(ArrayRef<Value *> VL, BoUpSLP *SLP,
// whole bundle might not be ready.
ReadyInsts.remove(BundleMember);
if (ArrayRef<ScheduleBundle *> Bundles = getScheduleBundles(V);
- !Bundles.empty())
- for_each(Bundles, [&](ScheduleBundle *B) { ReadyInsts.remove(B); });
+ !Bundles.empty()) {
+ for (ScheduleBundle *B : Bundles) {
+ ReadyInsts.remove(B);
+ }
----------------
alexey-bataev wrote:
Drop braces
https://github.com/llvm/llvm-project/pull/136146
More information about the llvm-commits
mailing list