From: Matt Arsenault Date: Fri, 10 Mar 2023 12:56:51 +0000 (-0400) Subject: RegAllocGreedy: Don't use Register reference X-Git-Tag: upstream/17.0.6~14403 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce6c36bab5491884991c29bab49bdc7a135d9a8a;p=platform%2Fupstream%2Fllvm.git RegAllocGreedy: Don't use Register reference --- diff --git a/llvm/lib/CodeGen/RegAllocGreedy.cpp b/llvm/lib/CodeGen/RegAllocGreedy.cpp index b43a4d2..a9c85e5 100644 --- a/llvm/lib/CodeGen/RegAllocGreedy.cpp +++ b/llvm/lib/CodeGen/RegAllocGreedy.cpp @@ -1960,7 +1960,7 @@ unsigned RAGreedy::tryLastChanceRecoloring(const LiveInterval &VirtReg, // don't add it to NewVRegs because its physical register will be restored // below. Other vregs in CurrentNewVRegs are created by calling // selectOrSplit and should be added into NewVRegs. - for (Register &R : CurrentNewVRegs) { + for (Register R : CurrentNewVRegs) { if (RecoloringCandidates.count(&LIS->getInterval(R))) continue; NewVRegs.push_back(R);