Lines Matching defs:Dist

108   bool noUseAfterLastDef(unsigned Reg, unsigned Dist, unsigned &LastDef);
111 MachineInstr *MI, unsigned Dist);
114 unsigned RegB, unsigned RegC, unsigned Dist);
120 unsigned RegA, unsigned RegB, unsigned Dist);
122 bool isDefTooClose(unsigned Reg, unsigned Dist, MachineInstr *MI);
134 unsigned Dist, bool shouldOnlyCommute);
143 void processTiedPairs(MachineInstr *MI, TiedPairList&, unsigned &Dist);
358 bool TwoAddressInstructionPass::noUseAfterLastDef(unsigned Reg, unsigned Dist,
361 unsigned LastUse = Dist;
375 return !(LastUse > LastDef && LastUse < Dist);
551 MachineInstr *MI, unsigned Dist) {
610 if (!noUseAfterLastDef(regC, Dist, LastDefC))
616 if (!noUseAfterLastDef(regB, Dist, LastDefB))
650 unsigned RegB, unsigned RegC, unsigned Dist) {
698 unsigned Dist) {
722 DistanceMap.insert(std::make_pair(NewMI, Dist));
989 bool TwoAddressInstructionPass::isDefTooClose(unsigned Reg, unsigned Dist,
1000 assert(Dist > DefDist && "Visited def already?");
1001 if (TII->getInstrLatency(InstrItins, &DefMI) > (Dist - DefDist))
1169 unsigned Dist, bool shouldOnlyCommute) {
1203 else if (isProfitableToCommute(regA, regB, regC, &MI, Dist)) {
1211 if (TryCommute && commuteInstruction(mi, regB, regC, Dist)) {
1233 if (convertInstTo3Addr(mi, nmi, regA, regB, Dist)) {
1297 tryInstructionTransform(NewMI, mi, NewSrcIdx, NewDstIdx, Dist, true);
1413 unsigned &Dist) {
1484 DistanceMap.insert(std::make_pair(PrevMI, Dist));
1485 DistanceMap[MI] = ++Dist;
1602 unsigned Dist = 0;
1620 DistanceMap.insert(std::make_pair(mi, ++Dist));
1647 tryInstructionTransform(mi, nmi, SrcIdx, DstIdx, Dist, false)) {
1660 processTiedPairs(mi, OI->second, Dist);