Lines Matching refs:DefMI
352 for (auto DefMI : List) { in chooseBestLEA() local
354 int64_t AddrDispShiftTemp = getAddrDispShift(MI, MemOpNo, *DefMI, 1); in chooseBestLEA()
366 MRI->getRegClass(DefMI->getOperand(0).getReg())) in chooseBestLEA()
373 int DistTemp = calcInstrDist(*DefMI, MI); in chooseBestLEA()
383 BestLEA = DefMI; in chooseBestLEA()
529 MachineInstr *DefMI; in removeRedundantAddrCalc() local
532 if (!chooseBestLEA(Insns->second, MI, DefMI, AddrDispShift, Dist)) in removeRedundantAddrCalc()
542 DefMI->removeFromParent(); in removeRedundantAddrCalc()
543 MBB->insert(MachineBasicBlock::iterator(&MI), DefMI); in removeRedundantAddrCalc()
544 InstrPos[DefMI] = InstrPos[&MI] - 1; in removeRedundantAddrCalc()
547 assert(((InstrPos[DefMI] == 1 && in removeRedundantAddrCalc()
548 MachineBasicBlock::iterator(DefMI) == MBB->begin()) || in removeRedundantAddrCalc()
549 InstrPos[DefMI] > in removeRedundantAddrCalc()
550 InstrPos[&*std::prev(MachineBasicBlock::iterator(DefMI))]) && in removeRedundantAddrCalc()
555 MRI->clearKillFlags(DefMI->getOperand(0).getReg()); in removeRedundantAddrCalc()
562 .ChangeToRegister(DefMI->getOperand(0).getReg(), false); in removeRedundantAddrCalc()