• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/

Lines Matching refs:TheLoop

161 static void collectCastsToIgnore(Loop *TheLoop, Instruction *Exit,
185 if (TheLoop->contains(I) && !Visited.count(I))
191 Loop *TheLoop, bool HasFunNoNaNAttr,
200 if (Phi->getParent() != TheLoop->getHeader())
205 Value *RdxStart = Phi->getIncomingValueForBlock(TheLoop->getLoopPreheader());
344 if (!TheLoop->contains(Parent)) {
440 collectCastsToIgnore(TheLoop, ExitInstruction, RecurrenceType, CastInsts);
611 bool RecurrenceDescriptor::isReductionPHI(PHINode *Phi, Loop *TheLoop,
616 BasicBlock *Header = TheLoop->getHeader();
621 if (AddReductionVar(Phi, RK_IntegerAdd, TheLoop, HasFunNoNaNAttr, RedDes, DB,
626 if (AddReductionVar(Phi, RK_IntegerMult, TheLoop, HasFunNoNaNAttr, RedDes, DB,
631 if (AddReductionVar(Phi, RK_IntegerOr, TheLoop, HasFunNoNaNAttr, RedDes, DB,
636 if (AddReductionVar(Phi, RK_IntegerAnd, TheLoop, HasFunNoNaNAttr, RedDes, DB,
641 if (AddReductionVar(Phi, RK_IntegerXor, TheLoop, HasFunNoNaNAttr, RedDes, DB,
646 if (AddReductionVar(Phi, RK_IntegerMinMax, TheLoop, HasFunNoNaNAttr, RedDes,
651 if (AddReductionVar(Phi, RK_FloatMult, TheLoop, HasFunNoNaNAttr, RedDes, DB,
656 if (AddReductionVar(Phi, RK_FloatAdd, TheLoop, HasFunNoNaNAttr, RedDes, DB,
661 if (AddReductionVar(Phi, RK_FloatMinMax, TheLoop, HasFunNoNaNAttr, RedDes, DB,
672 PHINode *Phi, Loop *TheLoop,
676 if (Phi->getParent() != TheLoop->getHeader() ||
682 auto *Preheader = TheLoop->getLoopPreheader();
683 auto *Latch = TheLoop->getLoopLatch();
695 if (!Previous || !TheLoop->contains(Previous) || isa<PHINode>(Previous) ||
850 bool InductionDescriptor::isFPInductionPHI(PHINode *Phi, const Loop *TheLoop,
857 if (TheLoop->getHeader() != Phi->getParent())
865 if (TheLoop->contains(Phi->getIncomingBlock(0))) {
869 assert(TheLoop->contains(Phi->getIncomingBlock(1)) &&
894 if (TheLoop->contains(I))
1008 bool InductionDescriptor::isInductionPHI(PHINode *Phi, const Loop *TheLoop,
1022 return isFPInductionPHI(Phi, TheLoop, PSE.getSE(), D);
1046 return isInductionPHI(Phi, TheLoop, PSE.getSE(), D, AR, &Casts);
1049 return isInductionPHI(Phi, TheLoop, PSE.getSE(), D, AR);
1053 PHINode *Phi, const Loop *TheLoop, ScalarEvolution *SE,
1070 if (AR->getLoop() != TheLoop) {
1091 if (!ConstStep && !SE->isLoopInvariant(Step, TheLoop))