There are always more physical registers and register units so the
previous behaviour was correct but we can do with less memory.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248767
91177308-0d34-0410-b5e6-
96231b3b80d8
P.MaxSetPressure = CurrSetPressure;
- LiveRegs.PhysRegs.setUniverse(TRI->getNumRegs());
+ LiveRegs.PhysRegs.setUniverse(TRI->getNumRegUnits());
LiveRegs.VirtRegs.setUniverse(MRI->getNumVirtRegs());
if (TrackUntiedDefs)
UntiedDefs.setUniverse(MRI->getNumVirtRegs());