[llvm] c6a4e84 - AMDGPU: Remove unnecessary reference (#162085)

via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 6 06:54:46 PDT 2025


Author: Matt Arsenault
Date: 2025-10-06T13:54:41Z
New Revision: c6a4e84a10ae8b163c9cae3f9a49eb8077a499ff

URL: https://github.com/llvm/llvm-project/commit/c6a4e84a10ae8b163c9cae3f9a49eb8077a499ff
DIFF: https://github.com/llvm/llvm-project/commit/c6a4e84a10ae8b163c9cae3f9a49eb8077a499ff.diff

LOG: AMDGPU: Remove unnecessary reference (#162085)

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/GCNSubtarget.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/GCNSubtarget.cpp b/llvm/lib/Target/AMDGPU/GCNSubtarget.cpp
index 7b94ea3ffbf1f..f291e373a470d 100644
--- a/llvm/lib/Target/AMDGPU/GCNSubtarget.cpp
+++ b/llvm/lib/Target/AMDGPU/GCNSubtarget.cpp
@@ -541,7 +541,7 @@ unsigned GCNSubtarget::getMaxNumSGPRs(const Function &F) const {
 
 unsigned GCNSubtarget::getBaseMaxNumVGPRs(
     const Function &F, std::pair<unsigned, unsigned> NumVGPRBounds) const {
-  const auto &[Min, Max] = NumVGPRBounds;
+  const auto [Min, Max] = NumVGPRBounds;
 
   // Check if maximum number of VGPRs was explicitly requested using
   // "amdgpu-num-vgpr" attribute.


        


More information about the llvm-commits mailing list