mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-09 14:03:09 +00:00
AMDGPU: Delete dead code
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276675 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
568d841225
commit
5895e79530
@ -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) {
|
||||
|
@ -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;
|
||||
|
@ -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());
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user