Lines Matching defs:Phi
552 // Set the zero'th element of Phi to be from the preheader and remove all
1197 "At least one input to the select should be the original Phi");
1450 for (const RewritePhi &Phi : RewritePhiSet) {
1451 unsigned i = Phi.Ith;
1452 if (Phi.PN == P && (Phi.PN)->getIncomingValue(i) == Incoming) {
1475 /// Checks if it is safe to call InductionDescriptor::isInductionPHI for \p Phi,
1476 /// and returns true if this Phi is an induction phi in the loop. When
1478 static bool checkIsIndPhi(PHINode *Phi, Loop *L, ScalarEvolution *SE,
1480 if (!Phi)
1484 if (Phi->getParent() != L->getHeader())
1486 return InductionDescriptor::isInductionPHI(Phi, L, SE, ID);
1569 PHINode *Phi = dyn_cast<PHINode>(U);
1570 if (Phi != PN && !checkIsIndPhi(Phi, L, SE, ID))
1643 for (const RewritePhi &Phi : RewritePhiSet) {
1644 PHINode *PN = Phi.PN;
1650 !LoopCanBeDel && Phi.HighCost)
1654 Phi.ExpansionSCEV, Phi.PN->getType(), Phi.ExpansionPoint);
1658 << " LoopVal = " << *(Phi.ExpansionPoint) << "\n");
1671 Instruction *Inst = cast<Instruction>(PN->getIncomingValue(Phi.Ith));
1672 PN->setIncomingValue(Phi.Ith, ExitVal);