[all-commits] [llvm/llvm-project] d5c9d4: [AMDGPU] Fix warnings about unused variables [NFC]

mikaelholmen via All-commits all-commits at lists.llvm.org
Thu Jan 25 00:37:34 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d5c9d402f07e7448cd46870a59d981f582682548
      https://github.com/llvm/llvm-project/commit/d5c9d402f07e7448cd46870a59d981f582682548
  Author: Mikael Holmen <mikael.holmen at ericsson.com>
  Date:   2024-01-25 (Thu, 25 Jan 2024)

  Changed paths:
    M llvm/lib/Target/AMDGPU/GCNDPPCombine.cpp

  Log Message:
  -----------
  [AMDGPU] Fix warnings about unused variables [NFC]

Without this gcc warned like
 ../lib/Target/AMDGPU/GCNDPPCombine.cpp:371: warning: unused variable 'OpSelOpr' [-Wunused-variable]
   371 |       if (auto *OpSelOpr =
       |
 ../lib/Target/AMDGPU/GCNDPPCombine.cpp:388: warning: unused variable 'OpSelHiOpr' [-Wunused-variable]
   388 |       if (auto *OpSelHiOpr =
       |

Remove the unused variables.




More information about the All-commits mailing list