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

Lines Matching refs:Guard

1 //===-- LoopPredication.cpp - Guard based loop predication pass -----------===//
284 Value *expandCheck(SCEVExpander &Expander, Instruction *Guard,
289 Instruction *Guard);
293 Instruction *Guard);
297 Instruction *Guard);
299 SCEVExpander &Expander, Instruction *Guard);
301 bool widenWidenableBranchGuardConditions(BranchInst *Guard, SCEVExpander &Expander);
401 Instruction *Guard,
408 IRBuilder<> Builder(Guard);
416 Value *LHSV = Expander.expandCodeFor(LHS, Ty, findInsertPt(Guard, {LHS}));
417 Value *RHSV = Expander.expandCodeFor(RHS, Ty, findInsertPt(Guard, {RHS}));
418 IRBuilder<> Builder(findInsertPt(Guard, {LHSV, RHSV}));
564 SCEVExpander &Expander, Instruction *Guard) {
586 if (!isSafeToExpandAt(LatchStart, Guard, *SE) ||
587 !isSafeToExpandAt(LatchLimit, Guard, *SE)) {
604 expandCheck(Expander, Guard, LimitCheckPred, LatchLimit, RHS);
605 auto *FirstIterationCheck = expandCheck(Expander, Guard, RangeCheck.Pred,
607 IRBuilder<> Builder(findInsertPt(Guard, {FirstIterationCheck, LimitCheck}));
613 SCEVExpander &Expander, Instruction *Guard) {
629 if (!isSafeToExpandAt(LatchStart, Guard, *SE) ||
630 !isSafeToExpandAt(LatchLimit, Guard, *SE)) {
650 auto *FirstIterationCheck = expandCheck(Expander, Guard,
653 auto *LimitCheck = expandCheck(Expander, Guard, LimitCheckPred, LatchLimit,
655 IRBuilder<> Builder(findInsertPt(Guard, {FirstIterationCheck, LimitCheck}));
676 Instruction *Guard) {
689 LLVM_DEBUG(dbgs() << "Guard check:\n");
730 Expander, Guard);
734 Expander, Guard);
741 Instruction *Guard) {
773 Guard)) {
792 bool LoopPredication::widenGuardConditions(IntrinsicInst *Guard,
795 LLVM_DEBUG(Guard->dump());
799 unsigned NumWidened = collectChecks(Checks, Guard->getOperand(0), Expander,
800 Guard);
807 IRBuilder<> Builder(findInsertPt(Guard, Checks));
809 auto *OldCond = Guard->getOperand(0);
810 Guard->setOperand(0, AllChecks);
1239 for (auto *Guard : Guards)
1240 Changed |= widenGuardConditions(Guard, Expander);
1241 for (auto *Guard : GuardsAsWidenableBranches)
1242 Changed |= widenWidenableBranchGuardConditions(Guard, Expander);