Home
last modified time | relevance | path

Searched refs:isLoopInvariant (Results 1 – 25 of 39) sorted by relevance

12

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DLoopCacheAnalysis.cpp90 if (!SE.isLoopInvariant(Start, &L) || !SE.isLoopInvariant(Step, &L)) in isOneDimensionalArray()
264 if (isLoopInvariant(L)) { in computeRefCost()
365 bool IndexedReference::isLoopInvariant(const Loop &L) const { in isLoopInvariant() function in IndexedReference
370 if (SE.isLoopInvariant(SE.getSCEV(Addr), &L)) in isLoopInvariant()
414 : SE.isLoopInvariant(&Subscript, &L); in isCoeffForLoopZeroOrInvariant()
431 if (!SE.isLoopInvariant(Start, &L) || !SE.isLoopInvariant(Step, &L)) in isSimpleAddRecurrence()
DLoopInfo.cpp62 bool Loop::isLoopInvariant(const Value *V) const { in isLoopInvariant() function in Loop
69 return all_of(I->operands(), [this](Value *V) { return isLoopInvariant(V); }); in hasLoopInvariantOperands()
83 if (isLoopInvariant(I)) in makeLoopInvariant()
361 return SE.isLoopInvariant(IndDesc.getStep(), this); in isAuxiliaryInductionVariable()
DLoads.cpp212 if (L->isLoopInvariant(Ptr)) in isDereferenceableAndAlignedInLoop()
239 assert(SE.isLoopInvariant(StartS, L) && "implied by addrec definition"); in isDereferenceableAndAlignedInLoop()
DIVDescriptors.cpp959 if (L->isLoopInvariant(Op0)) in getCastsForInductionPHI()
961 else if (L->isLoopInvariant(Op1)) in getCastsForInductionPHI()
1090 if (!ConstStep && !SE->isLoopInvariant(Step, TheLoop)) in isInductionPHI()
DScalarEvolutionExpander.cpp218 if (!L->isLoopInvariant(LHS) || !L->isLoopInvariant(RHS)) break; in InsertBinop()
547 if (!L->isLoopInvariant(V) || !L->isLoopInvariant(Idx)) break; in expandAddToGEP()
567 if (!L->isLoopInvariant(V)) break; in expandAddToGEP()
570 GepIndices, [L](Value *Op) { return !L->isLoopInvariant(Op); }); in expandAddToGEP()
1838 if (SE.isLoopInvariant(S, L)) { in expand()
DLoopAccessAnalysis.cpp201 if (SE->isLoopInvariant(Sc, Lp)) in insert()
626 if (PSE.getSE()->isLoopInvariant(PtrScev, L)) in hasComputableBounds()
644 if (PSE.getSE()->isLoopInvariant(PtrScev, L)) in isNoWrap()
2116 return (SE->isLoopInvariant(SE->getSCEV(V), TheLoop)); in isUniform()
2158 if (SE->isLoopInvariant(Sc, TheLoop)) { in expandBounds()
DScalarEvolution.cpp2409 return isLoopInvariant(S, L) && properlyDominates(S, L->getHeader()); in isAvailableAtLoopEntry()
3426 assert(isLoopInvariant(Operands[i], L) && in getAddRecExpr()
3457 Operands, [&](const SCEV *Op) { return isLoopInvariant(Op, L); }); in getAddRecExpr()
3469 return isLoopInvariant(Op, NestedLoop); in getAddRecExpr()
4258 if (!SE.isLoopInvariant(Expr, L)) in visitUnknown()
4299 if (!SE.isLoopInvariant(Expr, L)) in visitUnknown()
4352 bool InvariantF = SE.isLoopInvariant(Expr, L); in visitUnknown()
4416 if (!SE.isLoopInvariant(Expr, L)) in visitUnknown()
4764 if (!isLoopInvariant(Accum, L)) in createAddRecFromPHIWithCastsImpl()
4848 assert(isLoopInvariant(Expr, L) && "Expr is expected to be invariant"); in createAddRecFromPHIWithCastsImpl()
[all …]
DDependenceAnalysis.cpp789 bool DependenceInfo::isLoopInvariant(const SCEV *Expression, in isLoopInvariant() function in DependenceInfo
793 return SE->isLoopInvariant(Expression, LoopNest) && in isLoopInvariant()
794 isLoopInvariant(Expression, LoopNest->getParentLoop()); in isLoopInvariant()
806 if (Level <= CommonLevels && !SE->isLoopInvariant(Expression, LoopNest)) in collectCommonLoops()
891 return isLoopInvariant(Expr, LoopNest); in checkSubscript()
902 if (!isLoopInvariant(Step, LoopNest)) in checkSubscript()
3045 if (SE->isLoopInvariant(AddRec, TargetLoop)) in addToCoefficient()
DVectorUtils.cpp164 !SE->isLoopInvariant(SE->getSCEV(GEP->getOperand(i)), Lp)) in stripGetElementPtr()
248 if (!Lp->isLoopInvariant(Stride)) in getStrideFromPointer()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DLoopPredication.cpp386 if (SE->isLoopInvariant(LHSS, L)) { in parseLoopICmp()
406 if (SE->isLoopInvariant(LHS, L) && SE->isLoopInvariant(RHS, L)) { in expandCheck()
507 if (!L->isLoopInvariant(Op)) in findInsertPt()
518 if (!SE->isLoopInvariant(Op, L) || in findInsertPt()
544 if (SE->isLoopInvariant(S, L)) in isLoopInvariantValue()
1114 !SE->isLoopInvariant(MinEC, L) || in predicateLoopExits()
DIndVarSimplify.cpp646 !SE->isLoopInvariant(ExitValue, L) || in rewriteLoopExitValues()
659 !SE->isLoopInvariant(ExitValue, L) || in rewriteLoopExitValues()
788 if (!L->isLoopInvariant(Cond)) in rewriteFirstIterationLoopExitValues()
1077 L && L->getLoopPreheader() && L->isLoopInvariant(NarrowOper); in createExtendInst()
2041 if (L->isLoopInvariant(IncI->getOperand(1))) in getLoopPhiForCounter()
2051 if (L->isLoopInvariant(IncI->getOperand(0))) in getLoopPhiForCounter()
2080 if (L->isLoopInvariant(BI->getCondition())) in needsLFTR()
2096 if (!L->isLoopInvariant(RHS)) { in needsLFTR()
2097 if (!L->isLoopInvariant(LHS)) in needsLFTR()
2357 assert(SE->isLoopInvariant(IVOffset, L) && in genLoopLimit()
[all …]
DLoopVersioningLICM.cpp361 if (SE->isLoopInvariant(SE->getSCEV(Ptr), CurLoop)) in instructionSafeForVersioning()
375 if (SE->isLoopInvariant(SE->getSCEV(Ptr), CurLoop)) in instructionSafeForVersioning()
DSimpleLoopUnswitch.cpp107 assert(!L.isLoopInvariant(&Root) && in collectHomogenousInstGraphLoopInvariants()
124 if (L.isLoopInvariant(OpV)) { in collectHomogenousInstGraphLoopInvariants()
171 if (!L.isLoopInvariant(PN->getIncomingValueForBlock(&ExitingBB))) in areLoopExitPHIsLoopInvariant()
378 if (L.isLoopInvariant(BI.getCondition())) { in unswitchTrivialBranch()
596 if (!L.isLoopInvariant(LoopCond)) in unswitchTrivialSwitch()
2568 if (!isa<Constant>(Cond) && L.isLoopInvariant(Cond)) in unswitchBestCondition()
2576 L.isLoopInvariant(SI->getCondition()) && !BB->getUniqueSuccessor()) in unswitchBestCondition()
2586 if (L.isLoopInvariant(BI->getCondition())) { in unswitchBestCondition()
DLoopDataPrefetch.cpp270 if (L->isLoopInvariant(PtrValue)) in runOnLoop()
DSeparateConstOffsetFromGEP.cpp825 L && L->isLoopInvariant(ResultPtr) && in lowerToSingleIndexGEPs()
1246 if (CurLoop->isLoopInvariant(FirstOffset)) in isLegalToSwapOperand()
DLICM.cpp443 !L->isLoopInvariant(AS.begin()->getValue())) in runOnLoop()
870 CurLoop->isLoopInvariant(I.getOperand(1)) && in hoistRegion()
1125 if (ORE && Invalidated && CurLoop->isLoopInvariant(LI->getPointerOperand())) in canSinkOrHoistInst()
1733 if (LI && CurLoop->isLoopInvariant(LI->getPointerOperand())) in isSafeToExecuteUnconditionally()
DLoopUnrollAndJamPass.cpp263 if (SE.isLoopInvariant(LSCEV, L)) in computeUnrollAndJamCount()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoopVectorizationLegality.cpp332 if (!(CondOp0 == IVUpdate && OuterLp->isLoopInvariant(CondOp1)) && in isUniformLoop()
333 !(CondOp1 == IVUpdate && OuterLp->isLoopInvariant(CondOp0))) { in isUniformLoop()
451 !TheLoop->isLoopInvariant(Br->getCondition()) && in canVectorizeOuterLoop()
708 if (!SE->isLoopInvariant(PSE.getSCEV(CI->getOperand(i)), TheLoop)) { in canVectorizeInstrs()
DVPlan.h773 IsPtrLoopInvariant = OrigLoop->isLoopInvariant(GEP->getPointerOperand()); in VPWidenGEPRecipe()
776 OrigLoop->isLoopInvariant(Index.value().get()); in VPWidenGEPRecipe()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DSimplifyIndVar.cpp547 if (!(ICI->getOperand(0) == TI && L->isLoopInvariant(ICI->getOperand(1))) && in eliminateTrunc()
548 !(ICI->getOperand(1) == TI && L->isLoopInvariant(ICI->getOperand(0)))) in eliminateTrunc()
579 bool IsSwapped = L->isLoopInvariant(ICI->getOperand(0)); in eliminateTrunc()
666 if (!SE->isLoopInvariant(S, L)) in replaceIVUserWithLoopInvariant()
DLoopUnrollPeel.cpp143 if (L->isLoopInvariant(Input)) in calculateIterationsToInvariance()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DLoopCacheAnalysis.h99 bool isLoopInvariant(const Loop &L) const;
DDependenceAnalysis.h523 bool isLoopInvariant(const SCEV *Expression, const Loop *LoopNest) const;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCLoopInstrFormPrep.cpp358 if (L->isLoopInvariant(PtrValue)) in collectCandidates()
510 if (!SE->isLoopInvariant(BasePtrSCEV->getStart(), L)) in rewriteLoadStores()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DMVETailPredication.cpp243 if (TripCount != NumElements || !L->isLoopInvariant(BECount)) in isTailPredicate()

12