[llvm] 101cdac - [Mips] Remove MipsRegisterInfo::requiresRegisterScavenging. NFC.

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Mon May 15 09:33:43 PDT 2023


Author: Jay Foad
Date: 2023-05-15T17:30:33+01:00
New Revision: 101cdac93a626a597c410dfb80e459b5095ad614

URL: https://github.com/llvm/llvm-project/commit/101cdac93a626a597c410dfb80e459b5095ad614
DIFF: https://github.com/llvm/llvm-project/commit/101cdac93a626a597c410dfb80e459b5095ad614.diff

LOG: [Mips] Remove MipsRegisterInfo::requiresRegisterScavenging. NFC.

This method is unused since MipsRegisterInfo is abstract and it is
overridden in both concrete subclasses.

Added: 
    

Modified: 
    llvm/lib/Target/Mips/MipsRegisterInfo.cpp
    llvm/lib/Target/Mips/MipsRegisterInfo.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/Mips/MipsRegisterInfo.cpp b/llvm/lib/Target/Mips/MipsRegisterInfo.cpp
index e1fa033797769..3b12cb35b3673 100644
--- a/llvm/lib/Target/Mips/MipsRegisterInfo.cpp
+++ b/llvm/lib/Target/Mips/MipsRegisterInfo.cpp
@@ -239,11 +239,6 @@ getReservedRegs(const MachineFunction &MF) const {
   return Reserved;
 }
 
-bool
-MipsRegisterInfo::requiresRegisterScavenging(const MachineFunction &MF) const {
-  return true;
-}
-
 // FrameIndex represent objects inside a abstract stack.
 // We must replace FrameIndex with an stack/frame pointer
 // direct reference.

diff  --git a/llvm/lib/Target/Mips/MipsRegisterInfo.h b/llvm/lib/Target/Mips/MipsRegisterInfo.h
index 7eaab8d1d2060..b002f4cf3ae7a 100644
--- a/llvm/lib/Target/Mips/MipsRegisterInfo.h
+++ b/llvm/lib/Target/Mips/MipsRegisterInfo.h
@@ -56,8 +56,6 @@ class MipsRegisterInfo : public MipsGenRegisterInfo {
 
   BitVector getReservedRegs(const MachineFunction &MF) const override;
 
-  bool requiresRegisterScavenging(const MachineFunction &MF) const override;
-
   /// Stack Frame Processing Methods
   bool eliminateFrameIndex(MachineBasicBlock::iterator II,
                            int SPAdj, unsigned FIOperandNum,


        


More information about the llvm-commits mailing list