Add MachineRegisterInfo::constrainRegClass and use it in MachineCSE.
commitb22342dea0a19e97c52428a0b8027ddba05d6b69
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 6 Oct 2010 23:54:39 +0000 (6 23:54 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 6 Oct 2010 23:54:39 +0000 (6 23:54 +0000)
tree71539b0c1c119eca32aa95dcbf80949f41355875
parent89b96b4d17ae606bbc90856bb3e76b7ffd81ecf6
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