Avoid eraseing copies from a reserved register unless the definition can be
[oota-llvm.git] / lib / CodeGen / ExpandISelPseudos.cpp
index ebc2fc91efa3cdb0c70d54d6c5aec89879d372cf..b5f107d5cdfc4f0d607a3e15d402bfc3dccae3b5 100644 (file)
@@ -62,8 +62,7 @@ bool ExpandISelPseudos::runOnMachineFunction(MachineFunction &MF) {
       MachineInstr *MI = MBBI++;
 
       // If MI is a pseudo, expand it.
-      const TargetInstrDesc &TID = MI->getDesc();
-      if (TID.usesCustomInsertionHook()) {
+      if (MI->usesCustomInsertionHook()) {
         Changed = true;
         MachineBasicBlock *NewMBB =
           TLI->EmitInstrWithCustomInserter(MI, MBB);