diff options
author | Evan Cheng <evan.cheng@apple.com> | 2006-12-07 01:21:59 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2006-12-07 01:21:59 +0000 |
commit | 51cdcd197268a7abf19b2698fc824e0da3d98049 (patch) | |
tree | 461fb11bb479ab123fe28c571ad768e15f57c3a4 /lib/CodeGen/LiveIntervalAnalysis.cpp | |
parent | 6065f66e7c3fbde299a387d8a42c2d3a57d13c38 (diff) |
MI keeps a ptr of TargetInstrDescriptor, use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32296 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveIntervalAnalysis.cpp')
-rw-r--r-- | lib/CodeGen/LiveIntervalAnalysis.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/LiveIntervalAnalysis.cpp b/lib/CodeGen/LiveIntervalAnalysis.cpp index 3bdbe855c3..eeabbd1c05 100644 --- a/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/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; } } |