summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-12-15 06:41:01 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-12-15 06:41:01 +0000
commit86facc282850f99479584596058a5625b53caa69 (patch)
treec0e251f9e55241bc6e6ef980564377a17076fda9 /lib
parentf2f6a1baf78f3bdf375b258996abd567c20496bc (diff)
downloadllvm-86facc282850f99479584596058a5625b53caa69.tar.gz
llvm-86facc282850f99479584596058a5625b53caa69.tar.bz2
llvm-86facc282850f99479584596058a5625b53caa69.tar.xz
Minor clean up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/VirtRegMap.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp
index 04a6cf1307..82c88edb7e 100644
--- a/lib/CodeGen/VirtRegMap.cpp
+++ b/lib/CodeGen/VirtRegMap.cpp
@@ -573,7 +573,8 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM) {
// Loop over all of the implicit defs, clearing them from our available
// sets.
- const unsigned *ImpDef = TII->getImplicitDefs(MI.getOpcode());
+ const TargetInstrDescriptor *TID = MI.getInstrDescriptor();
+ const unsigned *ImpDef = TID->ImplicitDefs;
if (ImpDef) {
for ( ; *ImpDef; ++ImpDef) {
PhysRegsUsed[*ImpDef] = true;
@@ -626,7 +627,7 @@ void LocalSpiller::RewriteMBB(MachineBasicBlock &MBB, VirtRegMap &VRM) {
// aren't allowed to modify the reused register. If none of these cases
// apply, reuse it.
bool CanReuse = true;
- int ti = MI.getInstrDescriptor()->getOperandConstraint(i, TOI::TIED_TO);
+ int ti = TID->getOperandConstraint(i, TOI::TIED_TO);
if (ti != -1 &&
MI.getOperand(ti).isReg() &&
MI.getOperand(ti).getReg() == VirtReg) {