diff options
author | Sumanth Gundapaneni <sgundapa@codeaurora.org> | 2017-05-26 21:09:54 +0000 |
---|---|---|
committer | Sumanth Gundapaneni <sgundapa@codeaurora.org> | 2017-05-26 21:09:54 +0000 |
commit | a6cf2fd5ec0b790b3ab793b28f0c77b4e27dfadf (patch) | |
tree | 275e02be1fd4f5500a9ff07ec0b438387bdebef0 /llvm/lib | |
parent | 1f144a18ff82809c1aef1936460e30e05eac862f (diff) | |
download | bcm5719-llvm-a6cf2fd5ec0b790b3ab793b28f0c77b4e27dfadf.tar.gz bcm5719-llvm-a6cf2fd5ec0b790b3ab793b28f0c77b4e27dfadf.zip |
[Hexagon] Cleanup of unused function isCalleeSaveReg (NFC)
llvm-svn: 304034
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp | 5 | ||||
-rw-r--r-- | llvm/lib/Target/Hexagon/HexagonRegisterInfo.h | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp index 2a1bb63af78..1fc157900ed 100644 --- a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp +++ b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp @@ -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 { diff --git a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h index 8a3f175b848..5f65fad2cc0 100644 --- a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h +++ b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h @@ -77,7 +77,6 @@ public: unsigned getFirstCallerSavedNonParamReg() const; bool isEHReturnCalleeSaveReg(unsigned Reg) const; - bool isCalleeSaveReg(unsigned Reg) const; }; } // end namespace llvm |