[llvm] r233752 - Fix AllocationPriority not getting set for derived register classes.
Matthias Braun
matze at braunis.de
Tue Mar 31 13:52:26 PDT 2015
Author: matze
Date: Tue Mar 31 15:52:25 2015
New Revision: 233752
URL: http://llvm.org/viewvc/llvm-project?rev=233752&view=rev
Log:
Fix AllocationPriority not getting set for derived register classes.
Modified:
llvm/trunk/utils/TableGen/CodeGenRegisters.cpp
Modified: llvm/trunk/utils/TableGen/CodeGenRegisters.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenRegisters.cpp?rev=233752&r1=233751&r2=233752&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenRegisters.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenRegisters.cpp Tue Mar 31 15:52:25 2015
@@ -730,7 +730,8 @@ CodeGenRegisterClass::CodeGenRegisterCla
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::inheritProper
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.
More information about the llvm-commits
mailing list