Lines Matching refs:DefMI
344 for (auto DefMI : List) { in chooseBestLEA() local
346 int64_t AddrDispShiftTemp = getAddrDispShift(MI, MemOpNo, *DefMI, 1); in chooseBestLEA()
358 MRI->getRegClass(DefMI->getOperand(0).getReg())) in chooseBestLEA()
365 int DistTemp = calcInstrDist(*DefMI, MI); in chooseBestLEA()
375 BestLEA = DefMI; in chooseBestLEA()
519 MachineInstr *DefMI; in removeRedundantAddrCalc() local
522 if (!chooseBestLEA(Insns->second, MI, DefMI, AddrDispShift, Dist)) in removeRedundantAddrCalc()
532 DefMI->removeFromParent(); in removeRedundantAddrCalc()
533 MBB->insert(MachineBasicBlock::iterator(&MI), DefMI); in removeRedundantAddrCalc()
534 InstrPos[DefMI] = InstrPos[&MI] - 1; in removeRedundantAddrCalc()
537 assert(((InstrPos[DefMI] == 1 && in removeRedundantAddrCalc()
538 MachineBasicBlock::iterator(DefMI) == MBB->begin()) || in removeRedundantAddrCalc()
539 InstrPos[DefMI] > in removeRedundantAddrCalc()
540 InstrPos[&*std::prev(MachineBasicBlock::iterator(DefMI))]) && in removeRedundantAddrCalc()
545 MRI->clearKillFlags(DefMI->getOperand(0).getReg()); in removeRedundantAddrCalc()
552 .ChangeToRegister(DefMI->getOperand(0).getReg(), false); in removeRedundantAddrCalc()