[llvm] [RegAllocFast] Replace UsedInInstr with vector (PR #96323)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 21 10:04:55 PDT 2024
================
@@ -253,11 +253,19 @@ class RegAllocFastImpl {
SmallVector<MachineInstr *, 32> Coalesced;
- using RegUnitSet = SparseSet<uint16_t, identity<uint16_t>>;
- /// Set of register units that are used in the current instruction, and so
+ /// Track register units that are used in the current instruction, and so
/// cannot be allocated.
- RegUnitSet UsedInInstr;
- RegUnitSet PhysRegUses;
+ ///
+ /// In the first phase (tied defs/early clobber), we consider also physical
+ /// uses, afterwards, we don't. if the lowest bit isn't set, it's a solely
----------------
arsenm wrote:
Capitalize if
https://github.com/llvm/llvm-project/pull/96323
More information about the llvm-commits
mailing list