From: Matthias Braun Date: Tue, 29 Sep 2015 00:20:32 +0000 (+0000) Subject: RegisterPressure: LiveRegSet tracks register units not physregs X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=64ffcd4e983e4159bcb39104e77f2eb2a15473b7;p=oota-llvm.git 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@248767 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegisterPressure.cpp b/lib/CodeGen/RegisterPressure.cpp index 237e465e906..5da683eb999 100644 --- a/lib/CodeGen/RegisterPressure.cpp +++ b/lib/CodeGen/RegisterPressure.cpp @@ -210,7 +210,7 @@ void RegPressureTracker::init(const MachineFunction *mf, P.MaxSetPressure = CurrSetPressure; - LiveRegs.PhysRegs.setUniverse(TRI->getNumRegs()); + LiveRegs.PhysRegs.setUniverse(TRI->getNumRegUnits()); LiveRegs.VirtRegs.setUniverse(MRI->getNumVirtRegs()); if (TrackUntiedDefs) UntiedDefs.setUniverse(MRI->getNumVirtRegs());