projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f067a68
)
Fix AllocationPriority not getting set for derived register classes.
author
Matthias Braun
<matze@braunis.de>
Tue, 31 Mar 2015 20:52:25 +0000
(20:52 +0000)
committer
Matthias Braun
<matze@braunis.de>
Tue, 31 Mar 2015 20:52:25 +0000
(20:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233752
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/CodeGenRegisters.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/CodeGenRegisters.cpp
b/utils/TableGen/CodeGenRegisters.cpp
index 7179611f01274dfbb3b2e9fc34a471fb70be6167..e36066adf7aaa8dc65f796c08cdd953b232048fe 100644
(file)
--- a/
utils/TableGen/CodeGenRegisters.cpp
+++ b/
utils/TableGen/CodeGenRegisters.cpp
@@
-730,7
+730,8
@@
CodeGenRegisterClass::CodeGenRegisterClass(CodeGenRegBank &RegBank,
SpillSize(Props.SpillSize),
SpillAlignment(Props.SpillAlignment),
CopyCost(0),
- Allocatable(true) {
+ Allocatable(true),
+ AllocationPriority(0) {
for (const auto R : Members)
TopoSigs.set(R->getTopoSig());
}
@@
-750,6
+751,7
@@
void CodeGenRegisterClass::inheritProperties(CodeGenRegBank &RegBank) {
CopyCost = Super.CopyCost;
Allocatable = Super.Allocatable;
AltOrderSelect = Super.AltOrderSelect;
+ AllocationPriority = Super.AllocationPriority;
// Copy all allocation orders, filter out foreign registers from the larger
// super-class.