• Home
  • Raw
  • Download

Lines Matching refs:regB

100     bool isProfitableToCommute(unsigned regB, unsigned regC,
528 TwoAddressInstructionPass::isProfitableToCommute(unsigned regB, unsigned regC, in isProfitableToCommute() argument
562 unsigned FromRegB = getMappedReg(regB, SrcRegMap); in isProfitableToCommute()
564 unsigned ToRegB = getMappedReg(regB, DstRegMap); in isProfitableToCommute()
581 if (!NoUseAfterLastDef(regB, MBB, Dist, LastDefB)) in isProfitableToCommute()
868 unsigned regB = mi->getOperand(SrcIdx).getReg(); in TryInstructionTransform() local
870 assert(TargetRegisterInfo::isVirtualRegister(regB) && in TryInstructionTransform()
875 bool regBKilled = isKilled(*mi, regB, 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()
922 if (!regBKilled || isProfitableToConv3Addr(regA, regB)) { in TryInstructionTransform()
924 if (ConvertInstTo3Addr(mi, nmi, mbbi, regA, regB, Dist)) { in TryInstructionTransform()
979 unsigned NewSrcIdx = NewMIs[1]->findRegisterUseOperandIdx(regB); in TryInstructionTransform()
1109 unsigned regB = mi->getOperand(SrcIdx).getReg(); in runOnMachineFunction() local
1110 TiedOperands[regB].push_back(std::make_pair(SrcIdx, DstIdx)); in runOnMachineFunction()
1139 unsigned regB = OI->first; in runOnMachineFunction() local
1150 regB = mi->getOperand(SrcIdx).getReg(); in runOnMachineFunction()
1152 if (regA == regB) { in runOnMachineFunction()
1161 assert(TargetRegisterInfo::isVirtualRegister(regB) && in runOnMachineFunction()
1175 const TargetRegisterClass *rc = MRI->getRegClass(regB); in runOnMachineFunction()
1176 MachineInstr *DefMI = MRI->getVRegDef(regB); in runOnMachineFunction()
1181 DefMI->isSafeToReMat(TII, AA, regB) && in runOnMachineFunction()
1182 isProfitableToReMat(regB, rc, mi, DefMI, mbbi, Dist)){ in runOnMachineFunction()
1186 ReMatRegs.set(TargetRegisterInfo::virtReg2Index(regB)); in runOnMachineFunction()
1190 regA).addReg(regB); in runOnMachineFunction()
1201 assert(MO.isReg() && MO.getReg() == regB && MO.isUse() && in runOnMachineFunction()
1215 if (MO.isReg() && MO.getReg() == regB && MO.isUse()) { in runOnMachineFunction()
1226 if (RemovedKillFlag && LV && LV->getVarInfo(regB).removeKill(mi)) in runOnMachineFunction()
1227 LV->addVirtualRegisterKilled(regB, prior(mi)); in runOnMachineFunction()
1236 if (MO.isReg() && MO.getReg() == regB && MO.isUse()) { in runOnMachineFunction()