forked from OSchip/llvm-project
Fix AllocationPriority not getting set for derived register classes.
llvm-svn: 233752
This commit is contained in:
parent
cb33d6f546
commit
d5fa8fb106
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue