Lines Matching refs:PHI

111     MachineInstr *PHI;  member
117 : PHI(phi), TReg(0), FReg(0), CondCycles(0), TCycles(0), FCycles(0) {} in PHIInfo()
413 for (unsigned i = 1; i != PI.PHI->getNumOperands(); i += 2) { in canConvertIf()
414 if (PI.PHI->getOperand(i+1).getMBB() == TPred) in canConvertIf()
415 PI.TReg = PI.PHI->getOperand(i).getReg(); in canConvertIf()
416 if (PI.PHI->getOperand(i+1).getMBB() == FPred) in canConvertIf()
417 PI.FReg = PI.PHI->getOperand(i).getReg(); in canConvertIf()
425 DEBUG(dbgs() << "Can't convert: " << *PI.PHI); in canConvertIf()
462 DEBUG(dbgs() << "If-converting " << *PI.PHI); in replacePHIInstrs()
463 unsigned DstReg = PI.PHI->getOperand(0).getReg(); in replacePHIInstrs()
466 PI.PHI->eraseFromParent(); in replacePHIInstrs()
467 PI.PHI = nullptr; in replacePHIInstrs()
484 DEBUG(dbgs() << "If-converting " << *PI.PHI); in rewritePHIOperands()
490 unsigned PHIDst = PI.PHI->getOperand(0).getReg(); in rewritePHIOperands()
498 for (unsigned i = PI.PHI->getNumOperands(); i != 1; i -= 2) { in rewritePHIOperands()
499 MachineBasicBlock *MBB = PI.PHI->getOperand(i-1).getMBB(); in rewritePHIOperands()
501 PI.PHI->getOperand(i-1).setMBB(Head); in rewritePHIOperands()
502 PI.PHI->getOperand(i-2).setReg(DstReg); in rewritePHIOperands()
504 PI.PHI->RemoveOperand(i-1); in rewritePHIOperands()
505 PI.PHI->RemoveOperand(i-2); in rewritePHIOperands()
508 DEBUG(dbgs() << " --> " << *PI.PHI); in rewritePHIOperands()
729 unsigned Slack = TailTrace.getInstrSlack(*PI.PHI); in shouldConvertIf()
730 unsigned MaxDepth = Slack + TailTrace.getInstrCycles(*PI.PHI).Depth; in shouldConvertIf()
731 DEBUG(dbgs() << "Slack " << Slack << ":\t" << *PI.PHI); in shouldConvertIf()
745 unsigned TDepth = adjCycles(TBBTrace.getPHIDepth(*PI.PHI), PI.TCycles); in shouldConvertIf()
756 unsigned FDepth = adjCycles(FBBTrace.getPHIDepth(*PI.PHI), PI.FCycles); in shouldConvertIf()