mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-28 09:31:03 +00:00
Revert r168630, r168631, and r168633 as these are causing nightly test failures.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168751 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0d5dbcb5dc
commit
18bb0545ff
@ -305,8 +305,6 @@ void MachineRegisterInfo::dumpUses(unsigned Reg) const {
|
||||
#endif
|
||||
|
||||
void MachineRegisterInfo::freezeReservedRegs(const MachineFunction &MF) {
|
||||
assert (!reservedRegsFrozen() &&
|
||||
"freezeReservedRegs should only be called once!");
|
||||
ReservedRegs = TRI->getReservedRegs(MF);
|
||||
assert(ReservedRegs.size() == TRI->getNumRegs() &&
|
||||
"Invalid ReservedRegs vector from target");
|
||||
|
@ -58,6 +58,7 @@ void RegAllocBase::init(VirtRegMap &vrm,
|
||||
VRM = &vrm;
|
||||
LIS = &lis;
|
||||
Matrix = &mat;
|
||||
MRI->freezeReservedRegs(vrm.getMachineFunction());
|
||||
RegClassInfo.runOnMachineFunction(vrm.getMachineFunction());
|
||||
}
|
||||
|
||||
|
@ -1127,6 +1127,7 @@ bool RAFast::runOnMachineFunction(MachineFunction &Fn) {
|
||||
TM = &Fn.getTarget();
|
||||
TRI = TM->getRegisterInfo();
|
||||
TII = TM->getInstrInfo();
|
||||
MRI->freezeReservedRegs(Fn);
|
||||
RegClassInfo.runOnMachineFunction(Fn);
|
||||
UsedInInstr.clear();
|
||||
UsedInInstr.setUniverse(TRI->getNumRegs());
|
||||
|
@ -552,6 +552,8 @@ bool RegAllocPBQP::runOnMachineFunction(MachineFunction &MF) {
|
||||
vrm = &getAnalysis<VirtRegMap>();
|
||||
spiller.reset(createInlineSpiller(*this, MF, *vrm));
|
||||
|
||||
mri->freezeReservedRegs(MF);
|
||||
|
||||
DEBUG(dbgs() << "PBQP Register Allocating for " << mf->getName() << "\n");
|
||||
|
||||
// Allocator main loop:
|
||||
|
Loading…
x
Reference in New Issue
Block a user