Delete unneeded X86RegisterInfo::hasReservedSpillSlot. NFC

Only PowerPC and RISCV need to override it.
This commit is contained in:
Fangrui Song 2020-10-17 21:34:43 -07:00
parent 8f7b6a904f
commit e7813a930a
2 changed files with 0 additions and 10 deletions

View File

@ -665,13 +665,6 @@ bool X86RegisterInfo::canRealignStack(const MachineFunction &MF) const {
return true; return true;
} }
bool X86RegisterInfo::hasReservedSpillSlot(const MachineFunction &MF,
Register Reg, int &FrameIdx) const {
// Since X86 defines assignCalleeSavedSpillSlots which always return true
// this function neither used nor tested.
llvm_unreachable("Unused function on X86. Otherwise need a test case.");
}
// tryOptimizeLEAtoMOV - helper function that tries to replace a LEA instruction // tryOptimizeLEAtoMOV - helper function that tries to replace a LEA instruction
// of the form 'lea (%esp), %ebx' --> 'mov %esp, %ebx'. // of the form 'lea (%esp), %ebx' --> 'mov %esp, %ebx'.
// TODO: In this case we should be really trying first to entirely eliminate // TODO: In this case we should be really trying first to entirely eliminate

View File

@ -121,9 +121,6 @@ public:
bool canRealignStack(const MachineFunction &MF) const override; bool canRealignStack(const MachineFunction &MF) const override;
bool hasReservedSpillSlot(const MachineFunction &MF, Register Reg,
int &FrameIdx) const override;
void eliminateFrameIndex(MachineBasicBlock::iterator MI, void eliminateFrameIndex(MachineBasicBlock::iterator MI,
int SPAdj, unsigned FIOperandNum, int SPAdj, unsigned FIOperandNum,
RegScavenger *RS = nullptr) const override; RegScavenger *RS = nullptr) const override;