Precompute some information about register costs.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 12 Jan 2013 00:54:59 +0000 (00:54 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sat, 12 Jan 2013 00:54:59 +0000 (00:54 +0000)
commitc7a275245f501e2f68a55af05c75bc9b6b50ec84
treead3cefea1a85699d9de779752299a9f90a50792a
parentb2f0b595a3aac4da1265cfa2f7a53baaa229328f
Precompute some information about register costs.

Remember the minimum cost of the registers in an allocation order and
the number of registers at the end of the allocation order that have the
same cost per use.

This information can be used to limit the search space for
RAGreedy::tryEvict() when looking for a cheaper register.

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