summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-12-07 01:21:59 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-12-07 01:21:59 +0000
commite312c152d221dd85b2a6a0eff694497b2874bf71 (patch)
treecda3d799febf44d356f06591579a37cd859dcb37 /llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
parent7074cbd449738f10ef0c9b74deb4b6dfd3254aab (diff)
downloadbcm5719-llvm-e312c152d221dd85b2a6a0eff694497b2874bf71.tar.gz
bcm5719-llvm-e312c152d221dd85b2a6a0eff694497b2874bf71.zip
MI keeps a ptr of TargetInstrDescriptor, use it.
llvm-svn: 32296
Diffstat (limited to 'llvm/lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveIntervalAnalysis.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
index 3bdbe855c37..eeabbd1c054 100644
--- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
+++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp
@@ -434,7 +434,8 @@ static bool isReDefinedByTwoAddr(MachineInstr *MI, unsigned Reg,
for (unsigned j = i+1; j < e; ++j) {
MachineOperand &MO2 = MI->getOperand(j);
if (MO2.isRegister() && MO2.isUse() && MO2.getReg() == Reg &&
- TII->getOperandConstraint(MI->getOpcode(),j,TOI::TIED_TO) == (int)i)
+ MI->getInstrDescriptor()->
+ getOperandConstraint(j, TOI::TIED_TO) == (int)i)
return true;
}
}
OpenPOWER on IntegriCloud