[llvm] 110825b - [Hexagon] Remove unneeded HexagonRegisterInfo::getRARegister

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 13 12:40:55 PST 2022


Author: Krzysztof Parzyszek
Date: 2022-11-13T14:32:18-06:00
New Revision: 110825b677f9c85c9e0ed94a06893d3290d58215

URL: https://github.com/llvm/llvm-project/commit/110825b677f9c85c9e0ed94a06893d3290d58215
DIFF: https://github.com/llvm/llvm-project/commit/110825b677f9c85c9e0ed94a06893d3290d58215.diff

LOG: [Hexagon] Remove unneeded HexagonRegisterInfo::getRARegister

That function exists in MCRegisterInfo, and is inherited into HRI.

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp
index a833e032eee4..02517d7b1cad 100644
--- a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp
+++ b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.cpp
@@ -393,11 +393,6 @@ bool HexagonRegisterInfo::shouldCoalesce(MachineInstr *MI,
 }
 
 
-unsigned HexagonRegisterInfo::getRARegister() const {
-  return Hexagon::R31;
-}
-
-
 Register HexagonRegisterInfo::getFrameRegister(const MachineFunction
                                                &MF) const {
   const HexagonFrameLowering *TFI = getFrameLowering(MF);

diff  --git a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h
index 52d15da3bcb5..b7e3b621a4b4 100644
--- a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h
+++ b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h
@@ -61,7 +61,6 @@ class HexagonRegisterInfo : public HexagonGenRegisterInfo {
         const TargetRegisterClass *NewRC, LiveIntervals &LIS) const override;
 
   // Debug information queries.
-  unsigned getRARegister() const;
   Register getFrameRegister(const MachineFunction &MF) const override;
   unsigned getFrameRegister() const;
   unsigned getStackRegister() const;


        


More information about the llvm-commits mailing list