Lines Matching refs:Dist

132   bool noUseAfterLastDef(unsigned Reg, unsigned Dist, unsigned &LastDef);
135 MachineInstr *MI, unsigned Dist);
138 unsigned RegBIdx, unsigned RegCIdx, unsigned Dist);
144 unsigned RegA, unsigned RegB, unsigned Dist);
146 bool isDefTooClose(unsigned Reg, unsigned Dist, MachineInstr *MI);
158 unsigned Dist, bool shouldOnlyCommute);
164 unsigned Dist);
173 void processTiedPairs(MachineInstr *MI, TiedPairList&, unsigned &Dist);
385 bool TwoAddressInstructionPass::noUseAfterLastDef(unsigned Reg, unsigned Dist, in noUseAfterLastDef() argument
388 unsigned LastUse = Dist; in noUseAfterLastDef()
402 return !(LastUse > LastDef && LastUse < Dist); in noUseAfterLastDef()
586 MachineInstr *MI, unsigned Dist) { in isProfitableToCommute() argument
645 if (!noUseAfterLastDef(regC, Dist, LastDefC)) in isProfitableToCommute()
651 if (!noUseAfterLastDef(regB, Dist, LastDefB)) in isProfitableToCommute()
686 unsigned Dist) { in commuteInstruction() argument
734 unsigned Dist) { in convertInstTo3Addr() argument
759 DistanceMap.insert(std::make_pair(NewMI, Dist)); in convertInstTo3Addr()
1026 bool TwoAddressInstructionPass::isDefTooClose(unsigned Reg, unsigned Dist, in isDefTooClose() argument
1037 assert(Dist > DefDist && "Visited def already?"); in isDefTooClose()
1038 if (TII->getInstrLatency(InstrItins, DefMI) > (Dist - DefDist)) in isDefTooClose()
1207 unsigned Dist) { in tryInstructionCommute() argument
1234 isProfitableToCommute(DstOpReg, BaseOpReg, OtherOpReg, MI, Dist)) { in tryInstructionCommute()
1241 Dist)) { in tryInstructionCommute()
1270 unsigned Dist, bool shouldOnlyCommute) { in tryInstructionTransform() argument
1285 bool Commuted = tryInstructionCommute(&MI, DstIdx, SrcIdx, regBKilled, Dist); in tryInstructionTransform()
1320 if (convertInstTo3Addr(mi, nmi, regA, regB, Dist)) { in tryInstructionTransform()
1388 tryInstructionTransform(NewMI, mi, NewSrcIdx, NewDstIdx, Dist, true); in tryInstructionTransform()
1503 unsigned &Dist) { in processTiedPairs() argument
1574 DistanceMap.insert(std::make_pair(&*PrevMI, Dist)); in processTiedPairs()
1575 DistanceMap[MI] = ++Dist; in processTiedPairs()
1698 unsigned Dist = 0; in runOnMachineFunction() local
1719 DistanceMap.insert(std::make_pair(&*mi, ++Dist)); in runOnMachineFunction()
1746 tryInstructionTransform(mi, nmi, SrcIdx, DstIdx, Dist, false)) { in runOnMachineFunction()
1758 processTiedPairs(&*mi, TO.second, Dist); in runOnMachineFunction()