mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-29 13:32:33 +00:00
Now that the X86 Maximal Stack Alignment Check pass has been removed (i.e.,
r168627), we no longer need to call the freezeReservedRegs() function a second time. Previously, this pass was conservatively adding the FP to the set of reserved registers, requiring the second update to the reserved registers. rdar://12719844 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168631 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
216532ac0a
commit
728aede2e9
@ -1127,7 +1127,6 @@ bool RAFast::runOnMachineFunction(MachineFunction &Fn) {
|
|||||||
TM = &Fn.getTarget();
|
TM = &Fn.getTarget();
|
||||||
TRI = TM->getRegisterInfo();
|
TRI = TM->getRegisterInfo();
|
||||||
TII = TM->getInstrInfo();
|
TII = TM->getInstrInfo();
|
||||||
MRI->freezeReservedRegs(Fn);
|
|
||||||
RegClassInfo.runOnMachineFunction(Fn);
|
RegClassInfo.runOnMachineFunction(Fn);
|
||||||
UsedInInstr.clear();
|
UsedInInstr.clear();
|
||||||
UsedInInstr.setUniverse(TRI->getNumRegs());
|
UsedInInstr.setUniverse(TRI->getNumRegs());
|
||||||
|
@ -552,8 +552,6 @@ bool RegAllocPBQP::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
vrm = &getAnalysis<VirtRegMap>();
|
vrm = &getAnalysis<VirtRegMap>();
|
||||||
spiller.reset(createInlineSpiller(*this, MF, *vrm));
|
spiller.reset(createInlineSpiller(*this, MF, *vrm));
|
||||||
|
|
||||||
mri->freezeReservedRegs(MF);
|
|
||||||
|
|
||||||
DEBUG(dbgs() << "PBQP Register Allocating for " << mf->getName() << "\n");
|
DEBUG(dbgs() << "PBQP Register Allocating for " << mf->getName() << "\n");
|
||||||
|
|
||||||
// Allocator main loop:
|
// Allocator main loop:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user