summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StackSlotColoring.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-07-29 21:36:49 +0000
committerChris Lattner <sabre@nondot.org>2009-07-29 21:36:49 +0000
commit766733289964f94e00243bc3e305073b21fb21b8 (patch)
tree4dc272bff347c522edaf40c99fe6cfb63c6b9296 /llvm/lib/CodeGen/StackSlotColoring.cpp
parent175bd149674968143bff512ac1bf5ca0e2e779e3 (diff)
downloadbcm5719-llvm-766733289964f94e00243bc3e305073b21fb21b8.tar.gz
bcm5719-llvm-766733289964f94e00243bc3e305073b21fb21b8.zip
inline the global 'getInstrOperandRegClass' function into its callers
now that TargetOperandInfo does the heavy lifting. llvm-svn: 77508
Diffstat (limited to 'llvm/lib/CodeGen/StackSlotColoring.cpp')
-rw-r--r--llvm/lib/CodeGen/StackSlotColoring.cpp4
1 files changed, 2 insertions, 2 deletions
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;
OpenPOWER on IntegriCloud