[AMDGPU] Drop const for value that is copied (NFC).
authorFlorian Hahn <flo@fhahn.com>
Mon, 30 Mar 2020 09:59:54 +0000 (10:59 +0100)
committerFlorian Hahn <flo@fhahn.com>
Mon, 30 Mar 2020 09:59:59 +0000 (10:59 +0100)
commitc3b03f3d0c3565a556c11841b7cee57418c48c1a
tree4e46c4722f48752bbc365ce6d748a25a8cf49d8a
parent84c1fbab5d76e79708a096319b382db668f5c384
[AMDGPU] Drop const for value that is copied (NFC).

This fixes

    warning: loop variable 'Def' of type 'const llvm::Register' creates a copy from type 'const llvm::Register' [-Wrange-loop-analysis]

llvm::Register just contains a single unsigned and should be copied.

Reviewers: rampitec

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D77011
llvm/lib/Target/AMDGPU/SIPostRABundler.cpp