projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33260cf
)
RegAllocGreedy: Don't use Register reference
author
Matt Arsenault
<Matthew.Arsenault@amd.com>
Fri, 10 Mar 2023 12:56:51 +0000
(08:56 -0400)
committer
Matt Arsenault
<arsenm2@gmail.com>
Fri, 17 Mar 2023 19:22:13 +0000
(15:22 -0400)
llvm/lib/CodeGen/RegAllocGreedy.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/RegAllocGreedy.cpp
b/llvm/lib/CodeGen/RegAllocGreedy.cpp
index
b43a4d2
..
a9c85e5
100644
(file)
--- 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);