Lines Matching refs:DefMI
350 for (auto *DefMI : List) { in chooseBestLEA() local
352 int64_t AddrDispShiftTemp = getAddrDispShift(MI, MemOpNo, *DefMI, 1); in chooseBestLEA()
364 MRI->getRegClass(DefMI->getOperand(0).getReg())) in chooseBestLEA()
371 int DistTemp = calcInstrDist(*DefMI, MI); in chooseBestLEA()
381 BestLEA = DefMI; in chooseBestLEA()
525 MachineInstr *DefMI; in removeRedundantAddrCalc() local
528 if (!chooseBestLEA(Insns->second, MI, DefMI, AddrDispShift, Dist)) in removeRedundantAddrCalc()
538 DefMI->removeFromParent(); in removeRedundantAddrCalc()
539 MBB->insert(MachineBasicBlock::iterator(&MI), DefMI); in removeRedundantAddrCalc()
540 InstrPos[DefMI] = InstrPos[&MI] - 1; in removeRedundantAddrCalc()
543 assert(((InstrPos[DefMI] == 1 && in removeRedundantAddrCalc()
544 MachineBasicBlock::iterator(DefMI) == MBB->begin()) || in removeRedundantAddrCalc()
545 InstrPos[DefMI] > in removeRedundantAddrCalc()
546 InstrPos[&*std::prev(MachineBasicBlock::iterator(DefMI))]) && in removeRedundantAddrCalc()
551 MRI->clearKillFlags(DefMI->getOperand(0).getReg()); in removeRedundantAddrCalc()
558 .ChangeToRegister(DefMI->getOperand(0).getReg(), false); in removeRedundantAddrCalc()