[all-commits] [llvm/llvm-project] 40d251: [llvm] Use *Set::insert_range (NFC) (#133041)
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Wed Mar 26 07:46:47 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 40d251db4a58df37e356a10d94db2263c5f60d4b
https://github.com/llvm/llvm-project/commit/40d251db4a58df37e356a10d94db2263c5f60d4b
Author: Kazu Hirata <kazu at google.com>
Date: 2025-03-26 (Wed, 26 Mar 2025)
Changed paths:
M llvm/include/llvm/Transforms/IPO/Attributor.h
M llvm/include/llvm/Transforms/Utils/LockstepReverseIterator.h
M llvm/lib/ExecutionEngine/MCJIT/MCJIT.h
M llvm/lib/ExecutionEngine/Orc/Core.cpp
M llvm/lib/ExecutionEngine/Orc/LinkGraphLinkingLayer.cpp
M llvm/lib/FileCheck/FileCheck.cpp
M llvm/lib/IR/Assumptions.cpp
M llvm/lib/LTO/LTOCodeGenerator.cpp
M llvm/lib/LTO/ThinLTOCodeGenerator.cpp
M llvm/tools/bugpoint/CrashDebugger.cpp
M llvm/tools/llvm-reduce/ReducerWorkItem.cpp
M llvm/tools/llvm-reduce/deltas/ReduceRegisterMasks.cpp
Log Message:
-----------
[llvm] Use *Set::insert_range (NFC) (#133041)
We can use *Set::insert_range to collapse:
for (auto Elem : Range)
Set.insert(E);
down to:
Set.insert_range(Range);
In some cases, we can further fold that into the set declaration.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list