diff options
| author | Bill Wendling <isanbard@gmail.com> | 2019-07-15 06:35:28 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2019-07-15 06:35:28 +0000 |
| commit | 796ed134ccc3b4d1a27a0c30c17e43db1ced6a89 (patch) | |
| tree | 6a85ade5674fb2ee9812c1f4d30be7c14d80ebc1 | |
| parent | f1ee04c42a431d88cd66b884570ca7928cffd0cd (diff) | |
| download | bcm5719-llvm-796ed134ccc3b4d1a27a0c30c17e43db1ced6a89.tar.gz bcm5719-llvm-796ed134ccc3b4d1a27a0c30c17e43db1ced6a89.zip | |
Remove set but unused variable.
llvm-svn: 366041
| -rw-r--r-- | llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp b/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp index 9a93e84d80e..a8204747337 100644 --- a/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp +++ b/llvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp @@ -250,7 +250,6 @@ bool SILowerSGPRSpills::runOnMachineFunction(MachineFunction &MF) { MachineRegisterInfo &MRI = MF.getRegInfo(); SIMachineFunctionInfo *FuncInfo = MF.getInfo<SIMachineFunctionInfo>(); - bool AllSGPRSpilledToVGPRs = false; const bool SpillVGPRToAGPR = ST.hasMAIInsts() && FuncInfo->hasSpilledVGPRs() && EnableSpillVGPRToAGPR; @@ -262,8 +261,6 @@ bool SILowerSGPRSpills::runOnMachineFunction(MachineFunction &MF) { // handled as SpilledToReg in regular PrologEpilogInserter. if ((TRI->spillSGPRToVGPR() && (HasCSRs || FuncInfo->hasSpilledSGPRs())) || SpillVGPRToAGPR) { - AllSGPRSpilledToVGPRs = true; - // Process all SGPR spills before frame offsets are finalized. Ideally SGPRs // are spilled to VGPRs, in which case we can eliminate the stack usage. // @@ -299,8 +296,7 @@ bool SILowerSGPRSpills::runOnMachineFunction(MachineFunction &MF) { bool Spilled = TRI->eliminateSGPRToVGPRSpillFrameIndex(MI, FI, nullptr); (void)Spilled; assert(Spilled && "failed to spill SGPR to VGPR when allocated"); - } else - AllSGPRSpilledToVGPRs = false; + } } } |

