diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-08-11 17:15:28 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-08-11 17:15:28 +0000 |
commit | 69fd2c11795f85e22b61fca7bc7b12d92418a6db (patch) | |
tree | 2fa4537f0eb3680eaf0b98c20b340fcf90f87d07 /llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp | |
parent | d3344378c66b4262cadc5c89856b519fceeb0852 (diff) | |
download | llvm-69fd2c11795f85e22b61fca7bc7b12d92418a6db.zip llvm-69fd2c11795f85e22b61fca7bc7b12d92418a6db.tar.gz llvm-69fd2c11795f85e22b61fca7bc7b12d92418a6db.tar.bz2 |
AMDGPU: Remove unused tracking of flat instructions
llvm-svn: 278361
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp b/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp index 23043ea..4fad185 100644 --- a/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp +++ b/llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp @@ -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; } |