Lines Matching refs:DefMI
498 MachineInstr *DefMI = canFoldIntoSelect(MI.getOperand(1).getReg(), MRI);
499 bool Invert = !DefMI;
500 if (!DefMI)
501 DefMI = canFoldIntoSelect(MI.getOperand(2).getReg(), MRI);
502 if (!DefMI)
512 // Create a new predicated version of DefMI.
514 BuildMI(*MI.getParent(), MI, MI.getDebugLoc(), DefMI->getDesc(), DestReg);
516 // Copy all the DefMI operands, excluding its (null) predicate.
517 const MCInstrDesc &DefDesc = DefMI->getDesc();
520 NewMI.add(DefMI->getOperand(i));
536 // Update SeenMIs set: register newly created MI and erase removed DefMI.
538 SeenMIs.erase(DefMI);
540 // If MI is inside a loop, and DefMI is outside the loop, then kill flags on
541 // DefMI would be invalid when transferred inside the loop. Checking for a
544 if (DefMI->getParent() != MI.getParent())
547 // The caller will erase MI, but not DefMI.
548 DefMI->eraseFromParent();