[llvm] r248767 - RegisterPressure: LiveRegSet tracks register units not physregs
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 28 17:20:32 PDT 2015
Author: matze
Date: Mon Sep 28 19:20:32 2015
New Revision: 248767
URL: http://llvm.org/viewvc/llvm-project?rev=248767&view=rev
Log:
RegisterPressure: LiveRegSet tracks register units not physregs
There are always more physical registers and register units so the
previous behaviour was correct but we can do with less memory.
Modified:
llvm/trunk/lib/CodeGen/RegisterPressure.cpp
Modified: llvm/trunk/lib/CodeGen/RegisterPressure.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegisterPressure.cpp?rev=248767&r1=248766&r2=248767&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegisterPressure.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegisterPressure.cpp Mon Sep 28 19:20:32 2015
@@ -210,7 +210,7 @@ void RegPressureTracker::init(const Mach
P.MaxSetPressure = CurrSetPressure;
- LiveRegs.PhysRegs.setUniverse(TRI->getNumRegs());
+ LiveRegs.PhysRegs.setUniverse(TRI->getNumRegUnits());
LiveRegs.VirtRegs.setUniverse(MRI->getNumVirtRegs());
if (TrackUntiedDefs)
UntiedDefs.setUniverse(MRI->getNumVirtRegs());
More information about the llvm-commits
mailing list