Now that the X86 Maximal Stack Alignment Check pass has been removed (i.e.,
authorChad Rosier <mcrosier@apple.com>
Mon, 26 Nov 2012 23:25:41 +0000 (23:25 +0000)
committerChad Rosier <mcrosier@apple.com>
Mon, 26 Nov 2012 23:25:41 +0000 (23:25 +0000)
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

lib/CodeGen/RegAllocFast.cpp
lib/CodeGen/RegAllocPBQP.cpp

index 88922169b306c0672278a7ebead53966c2590ee6..3744b06f3ab747a95c04de39caea793f1b0ee4fd 100644 (file)
@@ -1127,7 +1127,6 @@ 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());
index 02ebce7a11a000d0236421056d40193b87175b36..f58d45f13165bb6553c806c6e771b27f3315bc59 100644 (file)
@@ -552,8 +552,6 @@ 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: