mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Fix AllocationPriority not getting set for derived register classes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233752 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f067a68207
commit
2c81f7d0a2
@ -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
Block a user