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. llvm-svn: 10634
Showing
- llvm/include/llvm/CodeGen/LiveIntervals.h 1 addition, 0 deletionsllvm/include/llvm/CodeGen/LiveIntervals.h
- llvm/lib/CodeGen/LiveIntervals.cpp 17 additions, 1 deletionllvm/lib/CodeGen/LiveIntervals.cpp
- llvm/lib/CodeGen/RegAllocLinearScan.cpp 12 additions, 1 deletionllvm/lib/CodeGen/RegAllocLinearScan.cpp
Loading
Please register or sign in to comment