Lines Matching refs:DefMI
317 for (auto DefMI : List) { in chooseBestLEA() local
319 int64_t AddrDispShiftTemp = getAddrDispShift(MI, MemOpNo, *DefMI, 1); in chooseBestLEA()
331 MRI->getRegClass(DefMI->getOperand(0).getReg())) in chooseBestLEA()
338 int DistTemp = calcInstrDist(*DefMI, MI); in chooseBestLEA()
348 BestLEA = DefMI; in chooseBestLEA()
487 MachineInstr *DefMI; in removeRedundantAddrCalc() local
490 if (!chooseBestLEA(LEAs[getMemOpKey(MI, MemOpNo)], MI, DefMI, AddrDispShift, in removeRedundantAddrCalc()
501 DefMI->removeFromParent(); in removeRedundantAddrCalc()
502 MBB->insert(MachineBasicBlock::iterator(&MI), DefMI); in removeRedundantAddrCalc()
503 InstrPos[DefMI] = InstrPos[&MI] - 1; in removeRedundantAddrCalc()
506 assert(((InstrPos[DefMI] == 1 && in removeRedundantAddrCalc()
507 MachineBasicBlock::iterator(DefMI) == MBB->begin()) || in removeRedundantAddrCalc()
508 InstrPos[DefMI] > in removeRedundantAddrCalc()
509 InstrPos[&*std::prev(MachineBasicBlock::iterator(DefMI))]) && in removeRedundantAddrCalc()
514 MRI->clearKillFlags(DefMI->getOperand(0).getReg()); in removeRedundantAddrCalc()
521 .ChangeToRegister(DefMI->getOperand(0).getReg(), false); in removeRedundantAddrCalc()