mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-27 14:24:40 +00:00
Make dense maps keyed on physical registers smallerusing
MRegisterInfo::getNumRegs() instead of MRegisterInfo::FirstVirtualRegister. Also use MRegisterInfo::is{Physical,Virtual}Register where appropriate. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11477 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -98,7 +98,7 @@ void PEI::saveCallerSavedRegisters(MachineFunction &Fn) {
|
||||
return;
|
||||
|
||||
// This bitset contains an entry for each physical register for the target...
|
||||
std::vector<bool> ModifiedRegs(MRegisterInfo::FirstVirtualRegister);
|
||||
std::vector<bool> ModifiedRegs(RegInfo->getNumRegs());
|
||||
unsigned MaxCallFrameSize = 0;
|
||||
bool HasCalls = false;
|
||||
|
||||
|
Reference in New Issue
Block a user