Lines Matching refs:LEAs
290 void findLEAs(const MachineBasicBlock &MBB, MemOpMap &LEAs);
293 bool removeRedundantAddrCalc(MemOpMap &LEAs);
302 bool removeRedundantLEAs(MemOpMap &LEAs);
481 MemOpMap &LEAs) { in findLEAs() argument
492 LEAs[getMemOpKey(MI, 1)].push_back(const_cast<MachineInstr *>(&MI)); in findLEAs()
499 bool X86OptimizeLEAPass::removeRedundantAddrCalc(MemOpMap &LEAs) { in removeRedundantAddrCalc() argument
502 assert(!LEAs.empty()); in removeRedundantAddrCalc()
503 MachineBasicBlock *MBB = (*LEAs.begin()->second.begin())->getParent(); in removeRedundantAddrCalc()
524 auto Insns = LEAs.find(getMemOpKey(MI, MemOpNo)); in removeRedundantAddrCalc()
525 if (Insns == LEAs.end()) in removeRedundantAddrCalc()
626 bool X86OptimizeLEAPass::removeRedundantLEAs(MemOpMap &LEAs) { in removeRedundantLEAs() argument
630 for (auto &E : LEAs) { in removeRedundantLEAs()
730 MemOpMap LEAs; in runOnMachineFunction() local
734 findLEAs(MBB, LEAs); in runOnMachineFunction()
737 if (LEAs.empty()) in runOnMachineFunction()
741 Changed |= removeRedundantLEAs(LEAs); in runOnMachineFunction()
748 Changed |= removeRedundantAddrCalc(LEAs); in runOnMachineFunction()