Lines Matching refs:PI
411 PHIInfo &PI = PHIs.back();
413 for (unsigned i = 1; i != PI.PHI->getNumOperands(); i += 2) {
414 if (PI.PHI->getOperand(i+1).getMBB() == TPred)
415 PI.TReg = PI.PHI->getOperand(i).getReg();
416 if (PI.PHI->getOperand(i+1).getMBB() == FPred)
417 PI.FReg = PI.PHI->getOperand(i).getReg();
419 assert(TargetRegisterInfo::isVirtualRegister(PI.TReg) && "Bad PHI");
420 assert(TargetRegisterInfo::isVirtualRegister(PI.FReg) && "Bad PHI");
423 if (!TII->canInsertSelect(*Head, Cond, PI.TReg, PI.FReg,
424 PI.CondCycles, PI.TCycles, PI.FCycles)) {
425 DEBUG(dbgs() << "Can't convert: " << *PI.PHI);
461 PHIInfo &PI = PHIs[i];
462 DEBUG(dbgs() << "If-converting " << *PI.PHI);
463 unsigned DstReg = PI.PHI->getOperand(0).getReg();
464 TII->insertSelect(*Head, FirstTerm, HeadDL, DstReg, Cond, PI.TReg, PI.FReg);
466 PI.PHI->eraseFromParent();
467 PI
481 PHIInfo &PI = PHIs[i];
482 DEBUG(dbgs() << "If-converting " << *PI.PHI);
483 unsigned PHIDst = PI.PHI->getOperand(0).getReg();
485 TII->insertSelect(*Head, FirstTerm, HeadDL, DstReg, Cond, PI.TReg, PI.FReg);
489 for (unsigned i = PI.PHI->getNumOperands(); i != 1; i -= 2) {
490 MachineBasicBlock *MBB = PI.PHI->getOperand(i-1).getMBB();
492 PI.PHI->getOperand(i-1).setMBB(Head);
493 PI.PHI->getOperand(i-2).setReg(DstReg);
495 PI.PHI->RemoveOperand(i-1);
496 PI.PHI->RemoveOperand(i-2);
499 DEBUG(dbgs() << " --> " << *PI.PHI);
719 SSAIfConv::PHIInfo &PI = IfConv.PHIs[i];
720 unsigned Slack = TailTrace.getInstrSlack(PI.PHI);
721 unsigned MaxDepth = Slack + TailTrace.getInstrCycles(PI.PHI).Depth;
722 DEBUG(dbgs() << "Slack " << Slack << ":\t" << *PI.PHI);
725 unsigned CondDepth = adjCycles(BranchDepth, PI.CondCycles);
736 unsigned TDepth = adjCycles(TBBTrace.getPHIDepth(PI.PHI), PI.TCycles);
747 unsigned FDepth = adjCycles(FBBTrace.getPHIDepth(PI.PHI), PI.FCycles);