Don't allow per-register spill size and alignment.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 21 Apr 2011 03:43:21 +0000 (03:43 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 21 Apr 2011 03:43:21 +0000 (03:43 +0000)
These values were not used for anything. Spill size and alignment is a property
of the register class, not the register.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129906 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/Target.td
utils/TableGen/CodeGenRegisters.h
utils/TableGen/CodeGenTarget.cpp

index ea0335ce20dd03b3a2d446f81fe26f45a804d443..68f0515f2d176b392e9fb56e105e0b7e0425f2a1 100644 (file)
@@ -32,17 +32,6 @@ class Register<string n> {
   string Namespace = "";
   string AsmName = n;
 
-  // SpillSize - If this value is set to a non-zero value, it is the size in
-  // bits of the spill slot required to hold this register.  If this value is
-  // set to zero, the information is inferred from any register classes the
-  // register belongs to.
-  int SpillSize = 0;
-
-  // SpillAlignment - This value is used to specify the alignment required for
-  // spilling the register.  Like SpillSize, this should only be explicitly
-  // specified if the register is not in a register class.
-  int SpillAlignment = 0;
-
   // Aliases - A list of registers that this register overlaps with.  A read or
   // modification of this register can potentially read or modify the aliased
   // registers.
index 1a876e110e704e522949a8a75e416bd491f7b176..39b92c515ad7db10e25a2668b546d4b2d674d9d7 100644 (file)
@@ -29,7 +29,6 @@ namespace llvm {
   struct CodeGenRegister {
     Record *TheDef;
     const std::string &getName() const;
-    unsigned DeclaredSpillSize, DeclaredSpillAlignment;
     unsigned EnumValue;
     unsigned CostPerUse;
     CodeGenRegister(Record *R);
index c9ccb960d9ff33cadec2e88c025fc98cfbebd1dd..57f7fdc4dc49abeb5d6f3cc74be1fb937029a552 100644 (file)
@@ -170,8 +170,6 @@ void CodeGenTarget::ReadRegisters() const {
 }
 
 CodeGenRegister::CodeGenRegister(Record *R) : TheDef(R) {
-  DeclaredSpillSize = R->getValueAsInt("SpillSize");
-  DeclaredSpillAlignment = R->getValueAsInt("SpillAlignment");
   CostPerUse = R->getValueAsInt("CostPerUse");
 }