[llvm] AMDGPU: Remove unnecessary reference (PR #162085)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 6 06:44:50 PDT 2025
================
@@ -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;
----------------
arsenm wrote:
But they're also not mutated. I'd rather just have everything const all the time tbh.
https://github.com/llvm/llvm-project/pull/162085
More information about the llvm-commits
mailing list