diff options
| author | Matthias Braun <matze@braunis.de> | 2015-09-29 00:20:32 +0000 |
|---|---|---|
| committer | Matthias Braun <matze@braunis.de> | 2015-09-29 00:20:32 +0000 |
| commit | 99ae16217ea46e277b6cdd4393a6feec35562677 (patch) | |
| tree | cb29ae7d4f6e3a1d34b261261543d1dd34654e1a /llvm/lib | |
| parent | 6163f67ad0a5d449eb93f31321f9a8d54e9f7aa8 (diff) | |
| download | bcm5719-llvm-99ae16217ea46e277b6cdd4393a6feec35562677.tar.gz bcm5719-llvm-99ae16217ea46e277b6cdd4393a6feec35562677.zip | |
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
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/RegisterPressure.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |

