From 4be636ebb31a1b718b75a20d3a75b11fa282663e Mon Sep 17 00:00:00 2001 From: Stanislav Mekhanoshin Date: Tue, 25 Jun 2019 18:33:53 +0000 Subject: [PATCH] [AMDGPU] Removed dead SIMachineFunctionInfo::getWorkItemIDVGPR() Differential Revision: https://reviews.llvm.org/D63780 llvm-svn: 364339 --- .../lib/Target/AMDGPU/SIMachineFunctionInfo.cpp | 17 ----------------- llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h | 3 --- 2 files changed, 20 deletions(-) diff --git a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp index 871a021778cf..5872f20ab12e 100644 --- a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp +++ b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp @@ -300,23 +300,6 @@ void SIMachineFunctionInfo::removeSGPRToVGPRFrameIndices(MachineFrameInfo &MFI) MFI.setStackID(i, 0); } - -/// \returns VGPR used for \p Dim' work item ID. -unsigned SIMachineFunctionInfo::getWorkItemIDVGPR(unsigned Dim) const { - switch (Dim) { - case 0: - assert(hasWorkItemIDX()); - return AMDGPU::VGPR0; - case 1: - assert(hasWorkItemIDY()); - return AMDGPU::VGPR1; - case 2: - assert(hasWorkItemIDZ()); - return AMDGPU::VGPR2; - } - llvm_unreachable("unexpected dimension"); -} - MCPhysReg SIMachineFunctionInfo::getNextUserSGPR() const { assert(NumSystemSGPRs == 0 && "System SGPRs must be added after user SGPRs"); return AMDGPU::SGPR0 + NumUserSGPRs; diff --git a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h index b8d1ac55adb0..eb245ab79fa6 100644 --- a/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h +++ b/llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h @@ -675,9 +675,6 @@ public: llvm_unreachable("unexpected dimension"); } - /// \returns VGPR used for \p Dim' work item ID. - unsigned getWorkItemIDVGPR(unsigned Dim) const; - unsigned getLDSWaveSpillSize() const { return LDSWaveSpillSize; }