When the register allocator runs out of registers, spill a physical register around the def's and use's of the interval being allocated to make it possible for the interval to target a register and spill it right away and restore a register for uses. This likely generates terrible code but is before than aborting.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48218 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng
2008-03-11 07:19:34 +00:00
parent 204496d58e
commit 676dd7c80b
10 changed files with 228 additions and 17 deletions

View File

@@ -321,9 +321,10 @@ public:
}
/// getPhysicalRegisterRegClass - Returns the Register Class of a physical
/// register of the given type.
const TargetRegisterClass *getPhysicalRegisterRegClass(MVT::ValueType VT,
unsigned Reg) const;
/// register of the given type. If type is MVT::Other, then just return any
/// register class the register belongs to.
const TargetRegisterClass *getPhysicalRegisterRegClass(unsigned Reg,
MVT::ValueType VT = MVT::Other) const;
/// getAllocatableSet - Returns a bitset indexed by register number
/// indicating if a register is allocatable or not. If a register class is