[llvm] [CodeGen] Add TRI::regunits() iterating over all register units (NFC) (PR #167901)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 13 08:53:37 PST 2025
================
@@ -1291,8 +1291,7 @@ bool RegAllocFastImpl::setPhysReg(MachineInstr &MI, MachineOperand &MO,
#ifndef NDEBUG
void RegAllocFastImpl::dumpState() const {
- for (unsigned Unit = 1, UnitE = TRI->getNumRegUnits(); Unit != UnitE;
----------------
arsenm wrote:
You could also probably just apply this in regunits(). There's probably no reason to visit the invalid case
https://github.com/llvm/llvm-project/pull/167901
More information about the llvm-commits
mailing list