[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:32 PDT 2025
================
@@ -20030,8 +20035,9 @@ bool BoUpSLP::collectValuesToDemote(
if (Operands.empty()) {
if (!IsTruncRoot)
MaxDepthLevel = 1;
- (void)for_each(E.Scalars, std::bind(IsPotentiallyTruncated, _1,
- std::ref(BitWidth)));
+ for (Value *V : E.Scalars) {
+ (void)IsPotentiallyTruncated(V, BitWidth);
+ }
----------------
alexey-bataev wrote:
Drop braces
https://github.com/llvm/llvm-project/pull/136146
More information about the llvm-commits
mailing list