From cdae95bef202c34adb65d195bed5d8d7bc77703c Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Mon, 25 Jul 2016 19:06:25 +0000 Subject: [PATCH] AMDGPU: Delete dead code llvm-svn: 276675 --- llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp | 8 -------- llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h | 1 - llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp | 26 -------------------------- llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h | 6 ------ 4 files changed, 41 deletions(-) diff --git a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp index d60256c..7bf414f 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp @@ -55,14 +55,6 @@ EVT AMDGPUTargetLowering::getEquivalentMemType(LLVMContext &Ctx, EVT VT) { return EVT::getVectorVT(Ctx, MVT::i32, StoreSize / 32); } -EVT AMDGPUTargetLowering::getEquivalentBitType(LLVMContext &Ctx, EVT VT) { - unsigned StoreSize = VT.getStoreSizeInBits(); - if (StoreSize <= 32) - return EVT::getIntegerVT(Ctx, StoreSize); - - return EVT::getVectorVT(Ctx, MVT::i32, StoreSize / 32); -} - AMDGPUTargetLowering::AMDGPUTargetLowering(const TargetMachine &TM, const AMDGPUSubtarget &STI) : TargetLowering(TM), Subtarget(&STI) { diff --git a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h index 9685fb8..e79bb67 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h @@ -75,7 +75,6 @@ protected: SDValue performSelectCombine(SDNode *N, DAGCombinerInfo &DCI) const; static EVT getEquivalentMemType(LLVMContext &Context, EVT VT); - static EVT getEquivalentBitType(LLVMContext &Context, EVT VT); virtual SDValue LowerGlobalAddress(AMDGPUMachineFunction *MFI, SDValue Op, SelectionDAG &DAG) const; diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp index 10fa9cf..5a38b46 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.cpp @@ -193,19 +193,6 @@ SISubtarget::SISubtarget(const Triple &TT, StringRef GPU, StringRef FS, TLInfo(TM, *this), GISel() {} -unsigned R600Subtarget::getStackEntrySize() const { - switch (getWavefrontSize()) { - case 16: - return 8; - case 32: - return hasCaymanISA() ? 4 : 8; - case 64: - return 4; - default: - llvm_unreachable("Illegal wavefront size."); - } -} - void SISubtarget::overrideSchedPolicy(MachineSchedPolicy &Policy, unsigned NumRegionInstrs) const { // Track register pressure so the scheduler can try to decrease @@ -226,16 +213,3 @@ void SISubtarget::overrideSchedPolicy(MachineSchedPolicy &Policy, bool SISubtarget::isVGPRSpillingEnabled(const Function& F) const { return EnableVGPRSpilling || !AMDGPU::isShader(F.getCallingConv()); } - -unsigned SISubtarget::getAmdKernelCodeChipID() const { - switch (getGeneration()) { - case SEA_ISLANDS: - return 12; - default: - llvm_unreachable("ChipID unknown"); - } -} - -AMDGPU::IsaVersion SISubtarget::getIsaVersion() const { - return AMDGPU::getIsaVersion(getFeatureBits()); -} diff --git a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h index 5a7485b..ee7da48 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h +++ b/llvm/lib/Target/AMDGPU/AMDGPUSubtarget.h @@ -328,8 +328,6 @@ public: short getTexVTXClauseSize() const { return TexVTXClauseSize; } - - unsigned getStackEntrySize() const; }; class SISubtarget final : public AMDGPUSubtarget { @@ -378,10 +376,6 @@ public: bool isVGPRSpillingEnabled(const Function& F) const; - unsigned getAmdKernelCodeChipID() const; - - AMDGPU::IsaVersion getIsaVersion() const; - unsigned getMaxNumUserSGPRs() const { return 16; } -- 2.7.4