Use the new TRI->getLargestLegalSuperClass hook to constrain register class inflation.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 26 Apr 2011 18:52:36 +0000 (18:52 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 26 Apr 2011 18:52:36 +0000 (18:52 +0000)
commit1394e6d9252ed188dbd73a59bcb4f15526641363
tree6532e6aad172e947b6ec3ea7dbba0216cac185fc
parentc9e5015dece0a1a73bec358e11bc87594831279d
Use the new TRI->getLargestLegalSuperClass hook to constrain register class inflation.

This has two effects: 1. We never inflate to a larger register class than what
the sub-target can handle. 2. Completely unconstrained virtual registers get the
largest possible register class.

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