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