summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUFrameLowering.cpp
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2015-08-15 02:32:35 +0000
committerJames Y Knight <jyknight@google.com>2015-08-15 02:32:35 +0000
commit5567bafe93d8dfce39c4f9fa909165ef9ff0c30f (patch)
treec65a18906483a717708927b6d41a0b7b23e12333 /llvm/lib/Target/AMDGPU/AMDGPUFrameLowering.cpp
parentcaad877d3e7a98eb47a6dd9b536dab9319726387 (diff)
downloadbcm5719-llvm-5567bafe93d8dfce39c4f9fa909165ef9ff0c30f.tar.gz
bcm5719-llvm-5567bafe93d8dfce39c4f9fa909165ef9ff0c30f.zip
Remove redundant TargetFrameLowering::getFrameIndexOffset virtual
function. This was the same as getFrameIndexReference, but without the FrameReg output. Differential Revision: http://reviews.llvm.org/D12042 llvm-svn: 245148
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUFrameLowering.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUFrameLowering.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUFrameLowering.cpp b/llvm/lib/Target/AMDGPU/AMDGPUFrameLowering.cpp
index 8175786fb9b..4d84d281d99 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUFrameLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUFrameLowering.cpp
@@ -71,9 +71,15 @@ unsigned AMDGPUFrameLowering::getStackWidth(const MachineFunction &MF) const {
}
/// \returns The number of registers allocated for \p FI.
-int AMDGPUFrameLowering::getFrameIndexOffset(const MachineFunction &MF,
- int FI) const {
+int AMDGPUFrameLowering::getFrameIndexReference(const MachineFunction &MF,
+ int FI,
+ unsigned &FrameReg) const {
const MachineFrameInfo *MFI = MF.getFrameInfo();
+ const TargetRegisterInfo *RI = MF.getSubtarget().getRegisterInfo();
+
+ // Fill in FrameReg output argument.
+ FrameReg = RI->getFrameRegister(MF);
+
// Start the offset at 2 so we don't overwrite work group information.
// XXX: We should only do this when the shader actually uses this
// information.
OpenPOWER on IntegriCloud