Lines Matching defs:Expander

286   Instruction *findInsertPt(const SCEVExpander &Expander, Instruction *User,
294 Value *expandCheck(SCEVExpander &Expander, Instruction *Guard,
299 SCEVExpander &Expander,
303 SCEVExpander &Expander,
307 SCEVExpander &Expander,
311 SCEVExpander &Expander, Instruction *Guard);
312 bool widenGuardConditions(IntrinsicInst *II, SCEVExpander &Expander);
313 bool widenWidenableBranchGuardConditions(BranchInst *Guard, SCEVExpander &Expander);
374 Value *LoopPredication::expandCheck(SCEVExpander &Expander,
391 Expander.expandCodeFor(LHS, Ty, findInsertPt(Expander, Guard, {LHS}));
393 Expander.expandCodeFor(RHS, Ty, findInsertPt(Expander, Guard, {RHS}));
489 Instruction *LoopPredication::findInsertPt(const SCEVExpander &Expander,
497 !Expander.isSafeToExpandAt(Op, Preheader->getTerminator()))
540 LoopICmp LatchCheck, LoopICmp RangeCheck, SCEVExpander &Expander,
563 if (!Expander.isSafeToExpandAt(LatchStart, Guard) ||
564 !Expander.isSafeToExpandAt(LatchLimit, Guard)) {
581 expandCheck(Expander, Guard, LimitCheckPred, LatchLimit, RHS);
582 auto *FirstIterationCheck = expandCheck(Expander, Guard, RangeCheck.Pred,
590 LoopICmp LatchCheck, LoopICmp RangeCheck, SCEVExpander &Expander,
607 if (!Expander.isSafeToExpandAt(LatchStart, Guard) ||
608 !Expander.isSafeToExpandAt(LatchLimit, Guard)) {
628 auto *FirstIterationCheck = expandCheck(Expander, Guard,
631 auto *LimitCheck = expandCheck(Expander, Guard, LimitCheckPred, LatchLimit,
653 LoopPredication::widenICmpRangeCheck(ICmpInst *ICI, SCEVExpander &Expander,
708 Expander, Guard);
712 Expander, Guard);
718 SCEVExpander &Expander, Instruction *Guard) {
721 if (auto NewRangeCheck = widenICmpRangeCheck(ICI, Expander, Guard)) {
728 SCEVExpander &Expander) {
736 widenChecks(Checks, WidenedChecks, Expander, Guard);
758 BranchInst *BI, SCEVExpander &Expander) {
771 widenChecks(Checks, WidenedChecks, Expander, BI);
1236 SCEVExpander Expander(*SE, *DL, "loop-predication");
1239 Changed |= widenGuardConditions(Guard, Expander);
1241 Changed |= widenWidenableBranchGuardConditions(Guard, Expander);
1242 Changed |= predicateLoopExits(L, Expander);