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()
527 MachineInstr *DefMI; in removeRedundantAddrCalc() local
530 if (!chooseBestLEA(Insns->second, MI, DefMI, AddrDispShift, Dist)) in removeRedundantAddrCalc()
540 DefMI->removeFromParent(); in removeRedundantAddrCalc()
541 MBB->insert(MachineBasicBlock::iterator(&MI), DefMI); in removeRedundantAddrCalc()
542 InstrPos[DefMI] = InstrPos[&MI] - 1; in removeRedundantAddrCalc()
545 assert(((InstrPos[DefMI] == 1 && in removeRedundantAddrCalc()
546 MachineBasicBlock::iterator(DefMI) == MBB->begin()) || in removeRedundantAddrCalc()
547 InstrPos[DefMI] > in removeRedundantAddrCalc()
548 InstrPos[&*std::prev(MachineBasicBlock::iterator(DefMI))]) && in removeRedundantAddrCalc()
553 MRI->clearKillFlags(DefMI->getOperand(0).getReg()); in removeRedundantAddrCalc()
560 .ChangeToRegister(DefMI->getOperand(0).getReg(), false); in removeRedundantAddrCalc()