From 99ae16217ea46e277b6cdd4393a6feec35562677 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Tue, 29 Sep 2015 00:20:32 +0000 Subject: 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. llvm-svn: 248767 --- llvm/lib/CodeGen/RegisterPressure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen') diff --git a/llvm/lib/CodeGen/RegisterPressure.cpp b/llvm/lib/CodeGen/RegisterPressure.cpp index 237e465e906..5da683eb999 100644 --- a/llvm/lib/CodeGen/RegisterPressure.cpp +++ b/llvm/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()); -- cgit v1.2.3