mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +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:
@ -187,10 +187,9 @@ bool LiveVariables::runOnMachineFunction(MachineFunction &MF) {
|
||||
// physical register. This is a purely local property, because all physical
|
||||
// register references as presumed dead across basic blocks.
|
||||
//
|
||||
MachineInstr *PhysRegInfoA[MRegisterInfo::FirstVirtualRegister];
|
||||
bool PhysRegUsedA[MRegisterInfo::FirstVirtualRegister];
|
||||
std::fill(PhysRegInfoA, PhysRegInfoA+MRegisterInfo::FirstVirtualRegister,
|
||||
(MachineInstr*)0);
|
||||
MachineInstr *PhysRegInfoA[RegInfo->getNumRegs()];
|
||||
bool PhysRegUsedA[RegInfo->getNumRegs()];
|
||||
std::fill(PhysRegInfoA, PhysRegInfoA+RegInfo->getNumRegs(), (MachineInstr*)0);
|
||||
PhysRegInfo = PhysRegInfoA;
|
||||
PhysRegUsed = PhysRegUsedA;
|
||||
|
||||
|
Reference in New Issue
Block a user