From 74d803a58c7935c067397bb19afc05ec464d8159 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Wed, 18 Aug 2010 17:57:37 +0000 Subject: Add hook for re-using virtual base registers for local stack slot access. Nothing fancy, just ask the target if any currently available base reg is in range for the instruction under consideration and use the first one that is. Placeholder ARM implementation simply returns false for now. ongoing saga of rdar://8277890 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111374 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMBaseRegisterInfo.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Target/ARM/ARMBaseRegisterInfo.h') diff --git a/lib/Target/ARM/ARMBaseRegisterInfo.h b/lib/Target/ARM/ARMBaseRegisterInfo.h index 7570d1fd16..716c91d9ad 100644 --- a/lib/Target/ARM/ARMBaseRegisterInfo.h +++ b/lib/Target/ARM/ARMBaseRegisterInfo.h @@ -110,6 +110,8 @@ public: unsigned BaseReg, int FrameIdx) const; void resolveFrameIndex(MachineBasicBlock::iterator I, unsigned BaseReg, int64_t Offset) const; + bool isBaseRegInRange(const MachineInstr *MI, unsigned Reg, + int64_t Offset) const; bool cannotEliminateFrame(const MachineFunction &MF) const; -- cgit v1.2.3