[Hexagon] Cleanup of unused function isCalleeSaveReg (NFC)
authorSumanth Gundapaneni <sgundapa@codeaurora.org>
Fri, 26 May 2017 21:09:54 +0000 (21:09 +0000)
committerSumanth Gundapaneni <sgundapa@codeaurora.org>
Fri, 26 May 2017 21:09:54 +0000 (21:09 +0000)
llvm-svn: 304034

llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp
llvm/lib/Target/Hexagon/HexagonRegisterInfo.h

index 2a1bb63..1fc1579 100644 (file)
@@ -50,11 +50,6 @@ bool HexagonRegisterInfo::isEHReturnCalleeSaveReg(unsigned R) const {
          R == Hexagon::R3 || R == Hexagon::D0 || R == Hexagon::D1;
 }
 
-bool HexagonRegisterInfo::isCalleeSaveReg(unsigned Reg) const {
-  return Hexagon::R16 <= Reg && Reg <= Hexagon::R27;
-}
-
-
 const MCPhysReg *
 HexagonRegisterInfo::getCallerSavedRegs(const MachineFunction *MF,
       const TargetRegisterClass *RC) const {
index 8a3f175..5f65fad 100644 (file)
@@ -77,7 +77,6 @@ public:
   unsigned getFirstCallerSavedNonParamReg() const;
 
   bool isEHReturnCalleeSaveReg(unsigned Reg) const;
-  bool isCalleeSaveReg(unsigned Reg) const;
 };
 
 } // end namespace llvm