Get allocation orders from RegisterClassInfo when possible.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 6 Jun 2011 21:02:04 +0000 (21:02 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 6 Jun 2011 21:02:04 +0000 (21:02 +0000)
commita46a100945c839a9b9baa6da0dcafafcd42d1085
tree00366500048055ed6bb4ce54251f171eb2a74717
parentfc3623bc50aa9e2a56736775edbd3ae919565351
Get allocation orders from RegisterClassInfo when possible.

Only target-dependent hints require callbacks. The RCI allocation order
has CSR aliases last according to their order of appearance in the
getCalleeSavedRegs list. This can depend on the calling convention.

This way, AllocationOrder::next doesn't have to check for reserved
registers, and CSRs are always allocated last, even with weird calling
conventions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132690 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AllocationOrder.cpp
lib/CodeGen/AllocationOrder.h