diff options
author | Chris Lattner <sabre@nondot.org> | 2009-07-29 21:36:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-07-29 21:36:49 +0000 |
commit | 2a3868849438a0a0ad4f9a50f2b94eb1639b554e (patch) | |
tree | 207c400577ae0d0da9afc4e32ae7c7eaabd04318 /lib/CodeGen/StackSlotColoring.cpp | |
parent | 20a2a0aff3221e2c777558d714753bae0f296c8d (diff) |
inline the global 'getInstrOperandRegClass' function into its callers
now that TargetOperandInfo does the heavy lifting.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77508 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/StackSlotColoring.cpp')
-rw-r--r-- | lib/CodeGen/StackSlotColoring.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/StackSlotColoring.cpp b/lib/CodeGen/StackSlotColoring.cpp index 0d9ebbbeb8..17c8929b70 100644 --- a/lib/CodeGen/StackSlotColoring.cpp +++ b/lib/CodeGen/StackSlotColoring.cpp @@ -512,7 +512,7 @@ bool StackSlotColoring::PropagateBackward(MachineBasicBlock::iterator MII, TID.getOpcode() == TargetInstrInfo::SUBREG_TO_REG) return false; - const TargetRegisterClass *RC = getInstrOperandRegClass(TRI, TID, i); + const TargetRegisterClass *RC = TID.OpInfo[i].getRegClass(TRI); if (RC && !RC->contains(NewReg)) return false; @@ -576,7 +576,7 @@ bool StackSlotColoring::PropagateForward(MachineBasicBlock::iterator MII, TID.getOpcode() == TargetInstrInfo::EXTRACT_SUBREG) return false; - const TargetRegisterClass *RC = getInstrOperandRegClass(TRI, TID, i); + const TargetRegisterClass *RC = TID.OpInfo[i].getRegClass(TRI); if (RC && !RC->contains(NewReg)) return false; FoundUse = true; |