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()
522 auto Insns = LEAs.find(getMemOpKey(MI, MemOpNo)); in removeRedundantAddrCalc()
523 if (Insns == LEAs.end()) in removeRedundantAddrCalc()
624 bool X86OptimizeLEAPass::removeRedundantLEAs(MemOpMap &LEAs) { in removeRedundantLEAs() argument
628 for (auto &E : LEAs) { in removeRedundantLEAs()
727 MemOpMap LEAs; in runOnMachineFunction() local
731 findLEAs(MBB, LEAs); in runOnMachineFunction()
734 if (LEAs.empty()) in runOnMachineFunction()
738 Changed |= removeRedundantLEAs(LEAs); in runOnMachineFunction()
745 Changed |= removeRedundantAddrCalc(LEAs); in runOnMachineFunction()