Lines Matching refs:Dist

103   bool noUseAfterLastDef(unsigned Reg, unsigned Dist, unsigned &LastDef);
106 MachineInstr *MI, unsigned Dist);
109 unsigned RegB, unsigned RegC, unsigned Dist);
115 unsigned RegA, unsigned RegB, unsigned Dist);
117 bool isDefTooClose(unsigned Reg, unsigned Dist, MachineInstr *MI);
129 unsigned Dist, bool shouldOnlyCommute);
138 void processTiedPairs(MachineInstr *MI, TiedPairList&, unsigned &Dist);
314 bool TwoAddressInstructionPass::noUseAfterLastDef(unsigned Reg, unsigned Dist,
317 unsigned LastUse = Dist;
333 return !(LastUse > LastDef && LastUse < Dist);
509 MachineInstr *MI, unsigned Dist) {
557 if (!noUseAfterLastDef(regC, Dist, LastDefC))
563 if (!noUseAfterLastDef(regB, Dist, LastDefB))
576 unsigned RegB, unsigned RegC, unsigned Dist) {
624 unsigned Dist) {
648 DistanceMap.insert(std::make_pair(NewMI, Dist));
915 bool TwoAddressInstructionPass::isDefTooClose(unsigned Reg, unsigned Dist,
928 assert(Dist > DefDist && "Visited def already?");
929 if (TII->getInstrLatency(InstrItins, DefMI) > (Dist - DefDist))
1097 unsigned Dist, bool shouldOnlyCommute) {
1131 else if (isProfitableToCommute(regA, regB, regC, &MI, Dist)) {
1139 if (TryCommute && commuteInstruction(mi, regB, regC, Dist)) {
1161 if (convertInstTo3Addr(mi, nmi, regA, regB, Dist)) {
1225 tryInstructionTransform(NewMI, mi, NewSrcIdx, NewDstIdx, Dist, true);
1340 unsigned &Dist) {
1392 DistanceMap.insert(std::make_pair(PrevMI, Dist));
1393 DistanceMap[MI] = ++Dist;
1505 unsigned Dist = 0;
1523 DistanceMap.insert(std::make_pair(mi, ++Dist));
1550 tryInstructionTransform(mi, nmi, SrcIdx, DstIdx, Dist, false)) {
1563 processTiedPairs(mi, OI->second, Dist);