MachineRegisterInfo: Remove UsedPhysReg infrastructure
[oota-llvm.git] / lib / Target / AArch64 / AArch64FrameLowering.cpp
index a76473f7e5392b857763403b3e4dbaf5c063e410..a7817f4f67dd204530083477bdffa7327a96c0f3 100644 (file)
@@ -354,7 +354,6 @@ void AArch64FrameLowering::emitPrologue(MachineFunction &MF,
   if (NumBytes && NeedsRealignment) {
     // Use the first callee-saved register as a scratch register.
     scratchSPReg = AArch64::X9;
-    MF.getRegInfo().setPhysRegUsed(scratchSPReg);
   }
 
   // If we're a leaf function, try using the red zone.