When the register allocator runs out of registers, spill a physical register around...
authorEvan Cheng <evan.cheng@apple.com>
Tue, 11 Mar 2008 07:19:34 +0000 (07:19 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 11 Mar 2008 07:19:34 +0000 (07:19 +0000)
commit676dd7c80b6f91178452535ac45ca58feb23cc42
tree33282790f7a542b3ef2f3af7a23646d8f8514a1c
parent204496d58e7e740f0da6d41c6214a91d67950d26
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
include/llvm/CodeGen/LiveIntervalAnalysis.h
include/llvm/Target/TargetRegisterInfo.h
lib/CodeGen/LiveIntervalAnalysis.cpp
lib/CodeGen/RegAllocLinearScan.cpp
lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
lib/CodeGen/SelectionDAG/ScheduleDAGRRList.cpp
lib/CodeGen/VirtRegMap.cpp
lib/CodeGen/VirtRegMap.h
lib/Target/TargetRegisterInfo.cpp
test/CodeGen/X86/2008-03-10-RegAllocInfLoop.ll [new file with mode: 0644]