From 766733289964f94e00243bc3e305073b21fb21b8 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 29 Jul 2009 21:36:49 +0000 Subject: inline the global 'getInstrOperandRegClass' function into its callers now that TargetOperandInfo does the heavy lifting. llvm-svn: 77508 --- llvm/lib/CodeGen/StackSlotColoring.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/StackSlotColoring.cpp') diff --git a/llvm/lib/CodeGen/StackSlotColoring.cpp b/llvm/lib/CodeGen/StackSlotColoring.cpp index 0d9ebbbeb80..17c8929b70a 100644 --- a/llvm/lib/CodeGen/StackSlotColoring.cpp +++ b/llvm/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; -- cgit v1.2.3