Lines Matching refs:regC
100 bool isProfitableToCommute(unsigned regB, unsigned regC,
528 TwoAddressInstructionPass::isProfitableToCommute(unsigned regB, unsigned regC, in isProfitableToCommute() argument
549 if (!MI->killsRegister(regC)) in isProfitableToCommute()
563 unsigned FromRegC = getMappedReg(regC, SrcRegMap); in isProfitableToCommute()
565 unsigned ToRegC = getMappedReg(regC, DstRegMap); in isProfitableToCommute()
575 if (!NoUseAfterLastDef(regC, MBB, Dist, LastDefC)) in isProfitableToCommute()
884 unsigned regC = 0; in TryInstructionTransform() local
896 regC = mi->getOperand(regCIdx).getReg(); in TryInstructionTransform()
897 if (!regBKilled && isKilled(*mi, regC, MRI, TII)) in TryInstructionTransform()
901 else if (isProfitableToCommute(regB, regC, mi, mbbi, Dist)) { in TryInstructionTransform()
909 if (TryCommute && CommuteInstruction(mi, mbbi, regB, regC, Dist)) { in TryInstructionTransform()