[PATCH] D36206: [AMDGPU] Delete dead code
Davide Italiano via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 1 21:08:46 PDT 2017
davide created this revision.
Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, kzhuravl.
This seems to be unused (set but never used), and breaks my GCC7 build with `-Werror`.
https://reviews.llvm.org/D36206
Files:
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
Index: lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
===================================================================
--- lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+++ lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
@@ -500,15 +500,6 @@
// If there are no calls, MachineRegisterInfo can tell us the used register
// count easily.
-
- MCPhysReg HighestVGPRReg = AMDGPU::NoRegister;
- for (MCPhysReg Reg : reverse(AMDGPU::VGPR_32RegClass.getRegisters())) {
- if (MRI.isPhysRegUsed(Reg)) {
- HighestVGPRReg = Reg;
- break;
- }
- }
-
int32_t MaxVGPR = -1;
int32_t MaxSGPR = -1;
uint32_t CalleeFrameSize = 0;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36206.109268.patch
Type: text/x-patch
Size: 623 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170802/3c0ffce7/attachment.bin>
More information about the llvm-commits
mailing list