Add a MinNumRegs argument to MRI::constrainRegClass().
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 22 Sep 2011 21:39:31 +0000 (21:39 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Thu, 22 Sep 2011 21:39:31 +0000 (21:39 +0000)
commit91fb536a345dc268e5b73dbddb9bee4cba87b28f
tree56a46fe2bccf2758765a8e7061b166e709f26fe3
parent17470bee5fd18bb2eae7825dae535c060a34ee7d
Add a MinNumRegs argument to MRI::constrainRegClass().

The function will refuse to use a register class with fewer registers
than MinNumRegs.  This can be used by clients to avoid accidentally
increase register pressure too much.

The default value of MinNumRegs=0 doesn't affect how constrainRegClass()
works.

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