Lines Matching refs:Dist

123   bool noUseAfterLastDef(Register Reg, unsigned Dist, unsigned &LastDef);
148 MachineInstr *MI, unsigned Dist);
151 unsigned RegBIdx, unsigned RegCIdx, unsigned Dist);
157 Register RegB, unsigned &Dist);
159 bool isDefTooClose(Register Reg, unsigned Dist, MachineInstr *MI);
169 unsigned &Dist, bool shouldOnlyCommute);
175 unsigned Dist);
184 void processTiedPairs(MachineInstr *MI, TiedPairList&, unsigned &Dist);
266 bool TwoAddressInstructionPass::noUseAfterLastDef(Register Reg, unsigned Dist, in noUseAfterLastDef() argument
269 unsigned LastUse = Dist; in noUseAfterLastDef()
283 return !(LastUse > LastDef && LastUse < Dist); in noUseAfterLastDef()
564 unsigned Dist) { in isProfitableToCommute() argument
623 if (!noUseAfterLastDef(RegC, Dist, LastDefC)) in isProfitableToCommute()
629 if (!noUseAfterLastDef(RegB, Dist, LastDefB)) in isProfitableToCommute()
669 unsigned Dist) { in commuteInstruction() argument
715 Register RegA, Register RegB, unsigned &Dist) { in convertInstTo3Addr() argument
742 DistanceMap.insert(std::make_pair(&MI, Dist++)); in convertInstTo3Addr()
743 Dist--; in convertInstTo3Addr()
1001 bool TwoAddressInstructionPass::isDefTooClose(Register Reg, unsigned Dist, in isDefTooClose() argument
1012 assert(Dist > DefDist && "Visited def already?"); in isDefTooClose()
1013 if (TII->getInstrLatency(InstrItins, DefMI) > (Dist - DefDist)) in isDefTooClose()
1178 unsigned Dist) { in tryInstructionCommute() argument
1205 isProfitableToCommute(DstOpReg, BaseOpReg, OtherOpReg, MI, Dist)) { in tryInstructionCommute()
1212 Dist)) { in tryInstructionCommute()
1243 unsigned &Dist, bool shouldOnlyCommute) { in tryInstructionTransform() argument
1257 bool Commuted = tryInstructionCommute(&MI, DstIdx, SrcIdx, regBKilled, Dist); in tryInstructionTransform()
1292 if (convertInstTo3Addr(mi, nmi, regA, regB, Dist)) { in tryInstructionTransform()
1351 DistanceMap.insert(std::make_pair(NewMIs[0], Dist++)); in tryInstructionTransform()
1352 DistanceMap.insert(std::make_pair(NewMIs[1], Dist)); in tryInstructionTransform()
1362 tryInstructionTransform(NewMI, mi, NewSrcIdx, NewDstIdx, Dist, true); in tryInstructionTransform()
1426 Dist--; in tryInstructionTransform()
1480 unsigned &Dist) { in processTiedPairs() argument
1547 DistanceMap.insert(std::make_pair(&*PrevMI, Dist)); in processTiedPairs()
1548 DistanceMap[MI] = ++Dist; in processTiedPairs()
1787 unsigned Dist = 0; in runOnMachineFunction() local
1806 DistanceMap.insert(std::make_pair(&*mi, ++Dist)); in runOnMachineFunction()
1834 tryInstructionTransform(mi, nmi, SrcIdx, DstIdx, Dist, false)) { in runOnMachineFunction()
1855 processTiedPairs(&*mi, TO.second, Dist); in runOnMachineFunction()