Lines Matching refs:isLoopInvariant

920           CurLoop->isLoopInvariant(I.getOperand(1))) {  in hoistRegion()
1186 if (ORE && Invalidated && CurLoop->isLoopInvariant(LI->getPointerOperand())) in canSinkOrHoistInst()
1784 if (LI && CurLoop->isLoopInvariant(LI->getPointerOperand())) in isSafeToExecuteUnconditionally()
2278 return L->isLoopInvariant(SI->getPointerOperand()); in collectPromotionCandidates()
2280 return L->isLoopInvariant(LI->getPointerOperand()); in collectPromotionCandidates()
2417 if (L.isLoopInvariant(LHS)) { in hoistMinMax()
2421 if (L.isLoopInvariant(LHS) || !L.isLoopInvariant(RHS)) in hoistMinMax()
2483 auto LoopInvariant = [&](Value *V) { return L.isLoopInvariant(V); }; in hoistGEP()
2484 if (!L.isLoopInvariant(SrcPtr) || !all_of(GEP->indices(), LoopInvariant)) in hoistGEP()
2527 assert(!L.isLoopInvariant(VariantLHS) && "Precondition."); in hoistAdd()
2528 assert(L.isLoopInvariant(InvariantRHS) && "Precondition."); in hoistAdd()
2538 if (L.isLoopInvariant(VariantOp)) in hoistAdd()
2540 if (L.isLoopInvariant(VariantOp) || !L.isLoopInvariant(InvariantOp)) in hoistAdd()
2574 assert(!L.isLoopInvariant(VariantLHS) && "Precondition."); in hoistSub()
2575 assert(L.isLoopInvariant(InvariantRHS) && "Precondition."); in hoistSub()
2587 if (L.isLoopInvariant(VariantOp)) { in hoistSub()
2592 if (L.isLoopInvariant(VariantOp) || !L.isLoopInvariant(InvariantOp)) in hoistSub()
2644 if (L.isLoopInvariant(LHS)) { in hoistAddSub()
2650 if (L.isLoopInvariant(LHS) || !L.isLoopInvariant(RHS) || !LHS->hasOneUse()) in hoistAddSub()
2679 if (L.isLoopInvariant(VariantOp)) in hoistFPAssociation()
2681 if (L.isLoopInvariant(VariantOp) || !L.isLoopInvariant(InvariantOp)) in hoistFPAssociation()
2700 if (BO->getOpcode() != Instruction::FMul || L.isLoopInvariant(BO)) in hoistFPAssociation()
2704 if (L.isLoopInvariant(U0)) in hoistFPAssociation()
2706 else if (L.isLoopInvariant(U1)) in hoistFPAssociation()
2721 assert(L.isLoopInvariant(U->get())); in hoistFPAssociation()