Add MachineRegisterInfo::constrainRegClass and use it in MachineCSE.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 6 Oct 2010 23:54:39 +0000 (23:54 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 6 Oct 2010 23:54:39 +0000 (23:54 +0000)
commitbf4699c56100a0184bbe4fb53937c7204ca1ceb0
tree71539b0c1c119eca32aa95dcbf80949f41355875
parent893ab5d7014dd112fb111a67504bd556be9bd393
Add MachineRegisterInfo::constrainRegClass and use it in MachineCSE.

This function is intended to be used when inserting a machine instruction that
trivially restricts the legal registers, like LEA requiring a GR32_NOSP
argument.

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