• Home
  • Raw
  • Download

Lines Matching refs:MPhi

212 static bool isSourceDefinedByImplicitDef(const MachineInstr *MPhi,  in isSourceDefinedByImplicitDef()  argument
214 for (unsigned i = 1; i != MPhi->getNumOperands(); i += 2) in isSourceDefinedByImplicitDef()
215 if (!isImplicitlyDefined(MPhi->getOperand(i).getReg(), MRI)) in isSourceDefinedByImplicitDef()
230 MachineInstr *MPhi = MBB.remove(&*MBB.begin()); in LowerPHINode() local
232 unsigned NumSrcs = (MPhi->getNumOperands() - 1) / 2; in LowerPHINode()
233 unsigned DestReg = MPhi->getOperand(0).getReg(); in LowerPHINode()
234 assert(MPhi->getOperand(0).getSubReg() == 0 && "Can't handle sub-reg PHIs"); in LowerPHINode()
235 bool isDead = MPhi->getOperand(0).isDead(); in LowerPHINode()
246 if (isSourceDefinedByImplicitDef(MPhi, MRI)) in LowerPHINode()
249 BuildMI(MBB, AfterPHIsIt, MPhi->getDebugLoc(), in LowerPHINode()
254 unsigned &entry = LoweredPHIs[MPhi]; in LowerPHINode()
260 DEBUG(dbgs() << "Reusing " << PrintReg(IncomingReg) << " for " << *MPhi); in LowerPHINode()
265 BuildMI(MBB, AfterPHIsIt, MPhi->getDebugLoc(), in LowerPHINode()
300 LV->removeVirtualRegistersKilled(*MPhi); in LowerPHINode()
305 LV->removeVirtualRegisterDead(DestReg, *MPhi); in LowerPHINode()
352 for (unsigned i = 1; i != MPhi->getNumOperands(); i += 2) in LowerPHINode()
353 --VRegPHIUseCount[BBVRegPair(MPhi->getOperand(i+1).getMBB()->getNumber(), in LowerPHINode()
354 MPhi->getOperand(i).getReg())]; in LowerPHINode()
360 unsigned SrcReg = MPhi->getOperand(i*2+1).getReg(); in LowerPHINode()
361 unsigned SrcSubReg = MPhi->getOperand(i*2+1).getSubReg(); in LowerPHINode()
362 bool SrcUndef = MPhi->getOperand(i*2+1).isUndef() || in LowerPHINode()
369 MachineBasicBlock &opBlock = *MPhi->getOperand(i*2+2).getMBB(); in LowerPHINode()
389 NewSrcInstr = BuildMI(opBlock, InsertPos, MPhi->getDebugLoc(), in LowerPHINode()
398 NewSrcInstr = BuildMI(opBlock, InsertPos, MPhi->getDebugLoc(), in LowerPHINode()
526 LIS->RemoveMachineInstrFromMaps(*MPhi); in LowerPHINode()
527 MF.DeleteMachineInstr(MPhi); in LowerPHINode()