AMDGPU: remove a couple of unused variables
authorSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 3 Dec 2016 22:25:21 +0000 (22:25 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Sat, 3 Dec 2016 22:25:21 +0000 (22:25 +0000)
commit9c89ba7fa7179c1ae70a1da2995d1246e95720b3
tree4d9536f54d327cddc89b9b8f48f1984150cc4a41
parent27227bb0900ffb9cd6a243c0a38101afc56242b2
AMDGPU: remove a couple of unused variables

lib/Target/AMDGPU/SIRegisterInfo.cpp: In member function 'void llvm::SIRegisterInfo::spillSGPR(llvm::MachineBasicBlock::iterator, int, llvm::RegScavenger*) const':
lib/Target/AMDGPU/SIRegisterInfo.cpp:572:30: warning: variable 'SubRC' set but not used [-Wunused-but-set-variable]
   const TargetRegisterClass *SubRC = nullptr;
                              ^
lib/Target/AMDGPU/SIRegisterInfo.cpp: In member function 'void llvm::SIRegisterInfo::restoreSGPR(llvm::MachineBasicBlock::iterator, int, llvm::RegScavenger*) const':
lib/Target/AMDGPU/SIRegisterInfo.cpp:723:30: warning: variable 'SubRC' set but not used [-Wunused-but-set-variable]
   const TargetRegisterClass *SubRC = nullptr;
                              ^

The variable was assigned to, but never used.  The functions called did not
mutate state.  Simplify the logic and remove the variable.  Identified by gcc
5.4.0.

llvm-svn: 288601
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp