Lines Matching refs:PHINode

68 static Instruction *lookThroughAnd(PHINode *Phi, Type *&RT,  in lookThroughAnd()
182 Instruction *Exit, PHINode *Phi) { in checkOrderedReduction()
214 PHINode *Phi, RecurKind Kind, Loop *TheLoop, FastMathFlags FuncFMF, in AddReductionVar()
358 bool IsAPhi = isa<PHINode>(Cur); in AddReductionVar()
473 if (isa<PHINode>(UI)) { in AddReductionVar()
484 } else if (!isa<PHINode>(UI) && in AddReductionVar()
628 RecurrenceDescriptor::isAnyOfPattern(Loop *Loop, PHINode *OrigPhi, in isAnyOfPattern()
645 if (OrigPhi == dyn_cast<PHINode>(SI->getTrueValue())) in isAnyOfPattern()
647 else if (OrigPhi == dyn_cast<PHINode>(SI->getFalseValue())) in isAnyOfPattern()
737 if ((isa<PHINode>(*TrueVal) && isa<PHINode>(*FalseVal)) || in isConditionalRdxPattern()
738 (!isa<PHINode>(*TrueVal) && !isa<PHINode>(*FalseVal))) in isConditionalRdxPattern()
742 isa<PHINode>(*TrueVal) ? dyn_cast<Instruction>(FalseVal) in isConditionalRdxPattern()
757 Instruction *IPhi = isa<PHINode>(*Op1) ? dyn_cast<Instruction>(Op1) in isConditionalRdxPattern()
766 RecurrenceDescriptor::isRecurrenceInstr(Loop *L, PHINode *OrigPhi, in isRecurrenceInstr()
838 bool RecurrenceDescriptor::isReductionPHI(PHINode *Phi, Loop *TheLoop, in isReductionPHI()
947 bool RecurrenceDescriptor::isFixedOrderRecurrence(PHINode *Phi, Loop *TheLoop, in isFixedOrderRecurrence()
975 SmallPtrSet<PHINode *, 4> SeenPhis; in isFixedOrderRecurrence()
976 while (auto *PrevPhi = dyn_cast_or_null<PHINode>(Previous)) { in isFixedOrderRecurrence()
984 if (!Previous || !TheLoop->contains(Previous) || isa<PHINode>(Previous)) in isFixedOrderRecurrence()
1014 if (isa<PHINode>(SinkCandidate)) in isFixedOrderRecurrence()
1131 RecurrenceDescriptor::getReductionOpChain(PHINode *Phi, Loop *L) const { in getReductionOpChain()
1157 if (isa<PHINode>(UI)) in getReductionOpChain()
1186 if (auto ExitPhi = dyn_cast<PHINode>(LoopExitInstr)) { in getReductionOpChain()
1275 bool InductionDescriptor::isFPInductionPHI(PHINode *Phi, const Loop *TheLoop, in isFPInductionPHI()
1366 auto *PN = cast<PHINode>(PhiScev->getValue()); in getCastsForInductionPHI()
1433 bool InductionDescriptor::isInductionPHI(PHINode *Phi, const Loop *TheLoop, in isInductionPHI()
1478 PHINode *Phi, const Loop *TheLoop, ScalarEvolution *SE, in isInductionPHI()