Move findTiedToSrcOperand to TargetInstrDescriptor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32366 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng
2006-12-08 18:45:48 +00:00
parent 6ec10ef00c
commit cc22a7a2ad
4 changed files with 20 additions and 23 deletions
+1 -2
View File
@@ -198,8 +198,7 @@ void RegAllocSimple::AllocateBasicBlock(MachineBasicBlock &MBB) {
unsigned physReg = Virt2PhysRegMap[virtualReg];
if (physReg == 0) {
if (op.isDef()) {
int TiedOp = TM->getInstrInfo()->
findTiedToSrcOperand(MI->getInstrDescriptor(), i);
int TiedOp = MI->getInstrDescriptor()->findTiedToSrcOperand(i);
if (TiedOp == -1) {
physReg = getFreeReg(virtualReg);
} else {