Add coalescing to register allocator. A hint is added to each interval
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Sun, 28 Dec 2003 17:58:18 +0000 (17:58 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Sun, 28 Dec 2003 17:58:18 +0000 (17:58 +0000)
commit26bfc08b80c904c71487ac1ab49a8b3a15a8d3e9
tree9c43be37aababc599020499bb3d87a73e069d472
parent5e30002af70ef09a42cac155d9196f7f0f3b1695
Add coalescing to register allocator. A hint is added to each interval
which denotes the register we would like to be assigned to (virtual or
physical). In register allocation, if this hint exists and we can map
it to a physical register (it is either a physical register or it is a
virtual register that already got assigned to a physical one) we use
that register if it is available instead of a random one in the free
pool.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10634 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/LiveIntervalAnalysis.h
include/llvm/CodeGen/LiveIntervals.h
lib/CodeGen/LiveIntervalAnalysis.cpp
lib/CodeGen/LiveIntervalAnalysis.h
lib/CodeGen/RegAllocLinearScan.cpp