[all-commits] [llvm/llvm-project] 737664: [ADT] Make use of subsetOf and anyCommon methods o...
Anatoly Trosinenko via All-commits
all-commits at lists.llvm.org
Fri Dec 5 07:56:11 PST 2025
Branch: refs/heads/users/atrosinenko/bitvector-subsetof-and-anycommon
Home: https://github.com/llvm/llvm-project
Commit: 73766497cd71e96377c0cab2ef13a1a3566fe4cd
https://github.com/llvm/llvm-project/commit/73766497cd71e96377c0cab2ef13a1a3566fe4cd
Author: Anatoly Trosinenko <atrosinenko at accesssoftek.com>
Date: 2025-12-05 (Fri, 05 Dec 2025)
Changed paths:
M bolt/include/bolt/Passes/LivenessAnalysis.h
M bolt/include/bolt/Passes/ReachingDefOrUse.h
M bolt/lib/Passes/RegReAssign.cpp
M bolt/lib/Passes/ShrinkWrapping.cpp
M bolt/lib/Passes/StackAvailableExpressions.cpp
M bolt/lib/Passes/TailDuplication.cpp
M llvm/lib/CodeGen/RDFRegisters.cpp
M llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp
Log Message:
-----------
[ADT] Make use of subsetOf and anyCommon methods of BitVector (NFC)
Replace the code along these lines
BitVector Tmp = LHS;
Tmp &= RHS;
return Tmp.any();
and
BitVector Tmp = LHS;
Tmp.reset(RHS);
return Tmp.none();
with `LHS.anyCommon(RHS)` and `LHS.subsetOf(RHS)`, correspondingly, which
do not require creating temporary BitVector and can return early.
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