Lines Matching refs:LEAs
289 void findLEAs(const MachineBasicBlock &MBB, MemOpMap &LEAs);
292 bool removeRedundantAddrCalc(MemOpMap &LEAs);
301 bool removeRedundantLEAs(MemOpMap &LEAs);
479 MemOpMap &LEAs) { in findLEAs() argument
490 LEAs[getMemOpKey(MI, 1)].push_back(const_cast<MachineInstr *>(&MI)); in findLEAs()
497 bool X86OptimizeLEAPass::removeRedundantAddrCalc(MemOpMap &LEAs) { in removeRedundantAddrCalc() argument
500 assert(!LEAs.empty()); in removeRedundantAddrCalc()
501 MachineBasicBlock *MBB = (*LEAs.begin()->second.begin())->getParent(); in removeRedundantAddrCalc()
520 auto Insns = LEAs.find(getMemOpKey(MI, MemOpNo)); in removeRedundantAddrCalc()
521 if (Insns == LEAs.end()) in removeRedundantAddrCalc()
622 bool X86OptimizeLEAPass::removeRedundantLEAs(MemOpMap &LEAs) { in removeRedundantLEAs() argument
626 for (auto &E : LEAs) { in removeRedundantLEAs()
729 MemOpMap LEAs; in runOnMachineFunction() local
733 findLEAs(MBB, LEAs); in runOnMachineFunction()
736 if (LEAs.empty()) in runOnMachineFunction()
740 Changed |= removeRedundantLEAs(LEAs); in runOnMachineFunction()
747 Changed |= removeRedundantAddrCalc(LEAs); in runOnMachineFunction()