1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

AMDGPU: Remove unused tracking of flat instructions

llvm-svn: 278361
This commit is contained in:
Matt Arsenault 2016-08-11 17:15:28 +00:00
parent 1424300899
commit 278cead855
3 changed files with 0 additions and 25 deletions

View File

@ -419,10 +419,7 @@ bool SILowerControlFlow::runOnMachineFunction(MachineFunction &MF) {
TRI = &TII->getRegisterInfo();
SkipThreshold = SkipThresholdFlag;
SIMachineFunctionInfo *MFI = MF.getInfo<SIMachineFunctionInfo>();
bool HaveKill = false;
bool NeedFlat = false;
unsigned Depth = 0;
MachineFunction::iterator NextBB;
@ -440,10 +437,6 @@ bool SILowerControlFlow::runOnMachineFunction(MachineFunction &MF) {
MachineInstr &MI = *I;
// Flat uses m0 in case it needs to access LDS.
if (TII->isFLAT(MI))
NeedFlat = true;
switch (MI.getOpcode()) {
default: break;
case AMDGPU::SI_IF:
@ -519,13 +512,5 @@ bool SILowerControlFlow::runOnMachineFunction(MachineFunction &MF) {
}
}
}
if (NeedFlat && MFI->isKernel()) {
// TODO: What to use with function calls?
// We will need to Initialize the flat scratch register pair.
if (NeedFlat)
MFI->setHasFlatInstructions(true);
}
return true;
}

View File

@ -59,7 +59,6 @@ SIMachineFunctionInfo::SIMachineFunctionInfo(const MachineFunction &MF)
HasSpilledSGPRs(false),
HasSpilledVGPRs(false),
HasNonSpillStackObjects(false),
HasFlatInstructions(false),
NumSpilledSGPRs(0),
NumSpilledVGPRs(0),
PrivateSegmentBuffer(false),

View File

@ -82,7 +82,6 @@ private:
bool HasSpilledSGPRs;
bool HasSpilledVGPRs;
bool HasNonSpillStackObjects;
bool HasFlatInstructions;
unsigned NumSpilledSGPRs;
unsigned NumSpilledVGPRs;
@ -308,14 +307,6 @@ public:
HasNonSpillStackObjects = StackObject;
}
bool hasFlatInstructions() const {
return HasFlatInstructions;
}
void setHasFlatInstructions(bool UseFlat = true) {
HasFlatInstructions = UseFlat;
}
unsigned getNumSpilledSGPRs() const {
return NumSpilledSGPRs;
}