Lines Matching refs:Dist
126 bool noUseAfterLastDef(Register Reg, unsigned Dist, unsigned &LastDef);
151 MachineInstr *MI, unsigned Dist);
154 unsigned RegBIdx, unsigned RegCIdx, unsigned Dist);
160 Register RegB, unsigned &Dist);
162 bool isDefTooClose(Register Reg, unsigned Dist, MachineInstr *MI);
172 unsigned &Dist, bool shouldOnlyCommute);
178 unsigned Dist);
187 void processTiedPairs(MachineInstr *MI, TiedPairList&, unsigned &Dist);
339 bool TwoAddressInstructionImpl::noUseAfterLastDef(Register Reg, unsigned Dist, in noUseAfterLastDef() argument
342 unsigned LastUse = Dist; in noUseAfterLastDef()
356 return !(LastUse > LastDef && LastUse < Dist); in noUseAfterLastDef()
637 unsigned Dist) { in isProfitableToCommute() argument
696 if (!noUseAfterLastDef(RegC, Dist, LastDefC)) in isProfitableToCommute()
702 if (!noUseAfterLastDef(RegB, Dist, LastDefB)) in isProfitableToCommute()
742 unsigned Dist) { in commuteInstruction() argument
788 Register RegA, Register RegB, unsigned &Dist) { in convertInstTo3Addr() argument
815 DistanceMap.insert(std::make_pair(&MI, Dist++)); in convertInstTo3Addr()
816 Dist--; in convertInstTo3Addr()
1074 bool TwoAddressInstructionImpl::isDefTooClose(Register Reg, unsigned Dist, in isDefTooClose() argument
1085 assert(Dist > DefDist && "Visited def already?"); in isDefTooClose()
1086 if (TII->getInstrLatency(InstrItins, DefMI) > (Dist - DefDist)) in isDefTooClose()
1251 unsigned Dist) { in tryInstructionCommute() argument
1278 isProfitableToCommute(DstOpReg, BaseOpReg, OtherOpReg, MI, Dist)) { in tryInstructionCommute()
1285 Dist)) { in tryInstructionCommute()
1314 unsigned SrcIdx, unsigned DstIdx, unsigned &Dist, bool shouldOnlyCommute) { in tryInstructionTransform() argument
1328 bool Commuted = tryInstructionCommute(&MI, DstIdx, SrcIdx, regBKilled, Dist); in tryInstructionTransform()
1363 if (convertInstTo3Addr(mi, nmi, regA, regB, Dist)) { in tryInstructionTransform()
1422 DistanceMap.insert(std::make_pair(NewMIs[0], Dist++)); in tryInstructionTransform()
1423 DistanceMap.insert(std::make_pair(NewMIs[1], Dist)); in tryInstructionTransform()
1435 tryInstructionTransform(NewMI, mi, NewSrcIdx, NewDstIdx, Dist, true); in tryInstructionTransform()
1502 Dist--; in tryInstructionTransform()
1555 unsigned &Dist) { in processTiedPairs() argument
1622 DistanceMap.insert(std::make_pair(&*PrevMI, Dist)); in processTiedPairs()
1623 DistanceMap[MI] = ++Dist; in processTiedPairs()
1844 unsigned Dist = 0; in run() local
1863 DistanceMap.insert(std::make_pair(&*mi, ++Dist)); in run()
1891 tryInstructionTransform(mi, nmi, SrcIdx, DstIdx, Dist, false)) { in run()
1912 processTiedPairs(&*mi, TO.second, Dist); in run()