Minor clean up.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 15 Dec 2006 06:41:01 +0000 (06:41 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 15 Dec 2006 06:41:01 +0000 (06:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32593 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/VirtRegMap.cpp

index 04a6cf13073b78ffe2e72b69d3911a99e908d5b2..82c88edb7e2c400c3e817bcb70863b43865129ef 100644 (file)
@@ -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) {