[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
================
@@ -1382,7 +1389,12 @@ void RegAllocFastImpl::allocateInstruction(MachineInstr &MI) {
// - The "free def operands" step has to come last instead of first for tied
// operands and early-clobbers.
- UsedInInstr.clear();
+ InstrGen += 2;
+ // In the event we ever get more than 2**31 instructions...
+ if (InstrGen == 0) {
----------------
arsenm wrote:
Is it worth putting an unlikely here?
https://github.com/llvm/llvm-project/pull/96323
More information about the llvm-commits
mailing list