Home
last modified time | relevance | path

Searched refs:getSCEV (Results 1 – 25 of 44) sorted by relevance

12

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyIndVar.cpp164 FoldedExpr = SE->getUDivExpr(SE->getSCEV(IVSrc), SE->getSCEV(D)); in foldIVUser()
168 SE->getSCEV(IVSrc) != SE->getMulExpr(FoldedExpr, SE->getSCEV(D))) in foldIVUser()
387 const SCEV *N = SE->getSCEV(NValue); in simplifyIVRemainder()
399 const SCEV *D = SE->getSCEV(DValue); in simplifyIVRemainder()
504 const SCEV *IVSCEV = SE->getSCEV(IV); in eliminateTrunc()
505 const SCEV *TISCEV = SE->getSCEV(TI); in eliminateTrunc()
649 const SCEV *S = SE->getSCEV(I); in replaceIVUserWithLoopInvariant()
682 (SE->getSCEV(UseInst) != SE->getSCEV(IVOperand))) in eliminateIdentitySCEV()
813 const SCEV *S = SE->getSCEV(I); in isSimpleIVUser()
1238 WideLHS = SE->getSCEV(WideDef); in cloneArithmeticIVUser()
[all …]
H A DScalarEvolutionExpander.cpp778 X = SE.getSCEV(U->getValue()); in visitAddExpr()
788 SE.getSCEV(Sum)); in visitAddExpr()
1117 IncV = expandAddToGEP(SE.getSCEV(StepV), GEPPtrTy, IntTy, PN); in expandIVInc()
1246 const SCEVAddRecExpr *PhiSCEV = dyn_cast<SCEVAddRecExpr>(SE.getSCEV(&PN)); in getAddRecExprPHILiterally()
2089 auto *Const = dyn_cast<SCEVConstant>(SE.getSCEV(PN)); in replaceCongruentIVs()
2112 PHINode *&OrigPhiRef = ExprToIVMap[SE.getSCEV(Phi)]; in replaceCongruentIVs()
2120 SE.getTruncateExpr(SE.getSCEV(Phi), Phis.back()->getType()); in replaceCongruentIVs()
2159 TruncExpr == SE.getSCEV(IsomorphicInc) && in replaceCongruentIVs()
2219 if (SE.getSCEV(LHS) == S && SE.DT.dominates(LHS, At)) in getRelatedExistingExpansion()
2222 if (SE.getSCEV(RHS) == S && SE.DT.dominates(RHS, At)) in getRelatedExistingExpansion()
[all …]
H A DLoopPeel.cpp209 const SCEV *LeftSCEV = SE.getSCEV(LeftVal); in countToEliminateCompares()
210 const SCEV *RightSCEV = SE.getSCEV(RightVal); in countToEliminateCompares()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DNaryReassociate.cpp237 const SCEV *NewSCEV = SE->getSCEV(NewI); in doOneIteration()
284 OrigSCEV = SE->getSCEV(I); in matchAndReassociateMinOrMax()
300 OrigSCEV = SE->getSCEV(I); in tryReassociate()
303 OrigSCEV = SE->getSCEV(I); in tryReassociate()
398 IndexExprs.push_back(SE->getSCEV(Index)); in tryReassociateGEPAtIndex()
400 IndexExprs[I] = SE->getSCEV(LHS); in tryReassociateGEPAtIndex()
464 if (SE->getSCEV(I)->isZero()) in tryReassociateBinaryOp()
481 const SCEV *AExpr = SE->getSCEV(A), *BExpr = SE->getSCEV(B); in tryReassociateBinaryOp()
482 const SCEV *RHSExpr = SE->getSCEV(RHS); in tryReassociateBinaryOp()
601 const SCEV *AExpr = SE->getSCEV(A), *BExpr = SE->getSCEV(B); in tryReassociateMinOrMax()
[all …]
H A DLoopLoadElimination.cpp119 auto *LoadPtrSCEV = cast<SCEVAddRecExpr>(PSE.getSCEV(LoadPtr)); in isDependenceDistanceOfOne()
120 auto *StorePtrSCEV = cast<SCEVAddRecExpr>(PSE.getSCEV(StorePtr)); in isDependenceDistanceOfOne()
430 auto *PtrSCEV = cast<SCEVAddRecExpr>(PSE.getSCEV(Ptr)); in propagateStoredValueToLoadUsers()
507 assert(isa<SCEVAddRecExpr>(PSE.getSCEV(Cand.Load->getPointerOperand())) && in processLoop()
510 isa<SCEVAddRecExpr>(PSE.getSCEV(Cand.Store->getPointerOperand())) && in processLoop()
573 PSE.getSCEV(Cand.Load->getPointerOperand())) || in processLoop()
575 PSE.getSCEV(Cand.Store->getPointerOperand())); in processLoop()
H A DAlignmentFromAssumptions.cpp131 const SCEV *PtrSCEV = SE->getSCEV(Ptr); in getNewAlignment()
222 AlignSCEV = SE->getSCEV(AlignOB.Inputs[1].get()); in extractAlignmentInfo()
229 OffSCEV = SE->getSCEV(AlignOB.Inputs[2].get()); in extractAlignmentInfo()
248 const SCEV *AASCEV = SE->getSCEV(AAPtr); in processAssumption()
H A DStraightLineStrengthReduce.cpp417 allocateCandidatesAndFindBasis(Candidate::Add, SE->getSCEV(LHS), Idx, S, I); in allocateCandidatesAndFindBasisForAdd()
422 allocateCandidatesAndFindBasis(Candidate::Add, SE->getSCEV(LHS), Idx, S, I); in allocateCandidatesAndFindBasisForAdd()
426 allocateCandidatesAndFindBasis(Candidate::Add, SE->getSCEV(LHS), One, RHS, in allocateCandidatesAndFindBasisForAdd()
450 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(B), Idx, RHS, I); in allocateCandidatesAndFindBasisForMul()
456 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(B), Idx, RHS, I); in allocateCandidatesAndFindBasisForMul()
460 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(LHS), Zero, RHS, in allocateCandidatesAndFindBasisForMul()
537 IndexExprs.push_back(SE->getSCEV(Idx)); in allocateCandidatesAndFindBasisForGEP()
H A DLoopBoundSplit.cpp61 Cond.AddRecSCEV = SE.getSCEV(Cond.AddRecValue); in analyzeICmp()
62 Cond.BoundSCEV = SE.getSCEV(Cond.BoundValue); in analyzeICmp()
374 if (SE.isSCEVable(PN.getType()) && isa<SCEVAddRecExpr>(SE.getSCEV(&PN))) { in splitLoopBound()
H A DLoopRerollPass.cpp594 dyn_cast<SCEVAddRecExpr>(SE->getSCEV(&*I))) { in collectPossibleIVs()
907 const auto *ADR = dyn_cast<SCEVAddRecExpr>(SE->getSCEV(DRS.BaseInst)); in validateRootSet()
913 const SCEV *StepSCEV = SE->getMinusSCEV(SE->getSCEV(DRS.Roots[0]), ADR); in validateRootSet()
922 const SCEV *NewStepSCEV = SE->getMinusSCEV(SE->getSCEV(DRS.Roots[i]), in validateRootSet()
923 SE->getSCEV(DRS.Roots[i-1])); in validateRootSet()
934 const auto *IVU_ADR = dyn_cast<SCEVAddRecExpr>(SE->getSCEV(IVU)); in findRootsBase()
1453 cast<SCEVAddRecExpr>(SE->getSCEV(DRS.BaseInst)); in replace()
1455 IncrExprs.push_back(SE->getMinusSCEV(SE->getSCEV(DRS.Roots[0]), IVSCEV)); in replace()
H A DLoopIdiomRecognize.cpp508 dyn_cast<SCEVAddRecExpr>(SE->getSCEV(StorePtr)); in isLegalStore()
567 dyn_cast<SCEVAddRecExpr>(SE->getSCEV(LI->getPointerOperand())); in isLegalStore()
673 cast<SCEVAddRecExpr>(SE->getSCEV(FirstStorePtr)); in processLoopStores()
709 cast<SCEVAddRecExpr>(SE->getSCEV(SecondStorePtr)); in processLoopStores()
846 const SCEVAddRecExpr *StoreEv = dyn_cast<SCEVAddRecExpr>(SE->getSCEV(Dest)); in processLoopMemCpy()
849 const SCEVAddRecExpr *LoadEv = dyn_cast<SCEVAddRecExpr>(SE->getSCEV(Source)); in processLoopMemCpy()
911 const SCEVAddRecExpr *Ev = dyn_cast<SCEVAddRecExpr>(SE->getSCEV(Pointer)); in processLoopMemSet()
1172 const SCEVAddRecExpr *StoreEv = cast<SCEVAddRecExpr>(SE->getSCEV(StorePtr)); in processLoopStoreOfLoopLoad()
1183 const SCEVAddRecExpr *LoadEv = cast<SCEVAddRecExpr>(SE->getSCEV(LoadPtr)); in processLoopStoreOfLoopLoad()
2532 ExtraOffsetExpr = SE->getNegativeSCEV(SE->getSCEV(ExtraOffset)); in detectShiftUntilZeroIdiom()
[all …]
H A DInductiveRangeCheckElimination.cpp299 return SE.isLoopInvariant(SE.getSCEV(V), L); in INITIALIZE_PASS_DEPENDENCY()
380 const auto *IndexAddRec = dyn_cast<SCEVAddRecExpr>(SE.getSCEV(Index)); in extractRangeChecksFromCond()
391 End = SE.getSCEV(Length); in extractRangeChecksFromCond()
802 const SCEV *LeftSCEV = SE.getSCEV(LeftValue); in parseLoopStructure()
806 const SCEV *RightSCEV = SE.getSCEV(RightValue); in parseLoopStructure()
872 const SCEV *Step = SE.getSCEV(StepCI); in parseLoopStructure()
1079 const SCEV *Start = NoopOrExtend(SE.getSCEV(MainLoopStructure.IndVarStart), in calculateSubRanges()
1081 const SCEV *End = NoopOrExtend(SE.getSCEV(MainLoopStructure.LoopExitAt), RTy, in calculateSubRanges()
1932 cast<SCEVAddRecExpr>(SE.getMinusSCEV(SE.getSCEV(LS.IndVarBase), SE.getSCEV(LS.IndVarStep))); in run()
H A DLoopStrengthReduce.cpp941 SE.getSCEV(&PN) == AR) in isExistingPhi()
1003 return SE.getSCEV(UI) == Mul; in isHighCostExpansion()
2954 const SCEV *const OperExpr = SE.getSCEV(NextIV); in ChainInstruction()
2980 const SCEV *PrevExpr = SE.getSCEV(PrevIV); in ChainInstruction()
3048 && !isa<SCEVUnknown>(SE.getSCEV(OtherUse)) in ChainInstruction()
3204 if (SE.getSCEV(*IVOpIter) == Head.IncExpr in GenerateIVChain()
3205 || SE.getSCEV(IVSrc) == Head.IncExpr) { in GenerateIVChain()
3270 if (!PostIncV || (SE.getSCEV(PostIncV) != SE.getSCEV(IVSrc))) in GenerateIVChain()
3334 const SCEV *N = SE.getSCEV(NV); in CollectFixupsAndInitialFormulae()
4259 if (F.referencesReg(SE.getSCEV( in GenerateCrossUseConstantOffsets()
[all …]
H A DIndVarSimplify.cpp868 const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(SE->getSCEV(Phi)); in isLoopCounter()
879 isa<SCEVAddRecExpr>(SE->getSCEV(IncV))); in isLoopCounter()
912 const auto *AR = cast<SCEVAddRecExpr>(SE->getSCEV(Phi)); in FindLoopCounter()
977 const SCEVAddRecExpr *AR = cast<SCEVAddRecExpr>(SE->getSCEV(IndVar)); in genLoopLimit()
1107 const SCEVAddRecExpr *AR = cast<SCEVAddRecExpr>(SE->getSCEV(IncVar)); in linearFunctionTestReplace()
1152 const SCEV *IV = SE->getSCEV(CmpIndVar); in linearFunctionTestReplace()
1153 const SCEV *TruncatedIV = SE->getTruncateExpr(SE->getSCEV(CmpIndVar), in linearFunctionTestReplace()
H A DLoopVersioningLICM.cpp374 if (SE->isLoopInvariant(SE->getSCEV(Ptr), CurLoop)) in instructionSafeForVersioning()
388 if (SE->isLoopInvariant(SE->getSCEV(Ptr), CurLoop)) in instructionSafeForVersioning()
H A DLoopFlatten.cpp175 if (SE->getSCEV(TripCount) != SCEVTripCount) { in findLoopComponents()
186 SE->getSCEV(TripCountInst->getOperand(0)) != SCEVTripCount) { in findLoopComponents()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp212 auto *EC= SE->getSCEV(ElemCount); in IsSafeActiveMask()
213 auto *TC = SE->getSCEV(TripCount); in IsSafeActiveMask()
266 auto *VW = SE->getSCEV(ConstantInt::get(TripCount->getType(), VectorWidth)); in IsSafeActiveMask()
269 SE->getSCEV(ConstantInt::get(TripCount->getType(), VectorWidth - 1))); in IsSafeActiveMask()
315 auto *IVExpr = SE->getSCEV(IV); in IsSafeActiveMask()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DScalarEvolution.cpp5276 Accum = getSCEV(BO->RHS); in createSimpleAffineAddRec()
5628 return getSCEV(V); in createNodeForPHI()
6795 getMulExpr(getSCEV(BO->LHS), getSCEV(BO->RHS), Flags)); in createSCEV()
6812 return getUDivExpr(getSCEV(BO->LHS), getSCEV(BO->RHS)); in createSCEV()
6814 return getURemExpr(getSCEV(BO->LHS), getSCEV(BO->RHS)); in createSCEV()
6819 return getMinusSCEV(getSCEV(BO->LHS), getSCEV(BO->RHS), Flags); in createSCEV()
6959 return getMulExpr(getSCEV(BO->LHS), getSCEV(X), Flags); in createSCEV()
7068 return getUDivExpr(getSCEV(U->getOperand(0)), getSCEV(U->getOperand(1))); in createSCEV()
7075 return getURemExpr(getSCEV(U->getOperand(0)), getSCEV(U->getOperand(1))); in createSCEV()
7097 return getSCEV(RV); in createSCEV()
[all …]
H A DScalarEvolutionAliasAnalysis.cpp35 const SCEV *AS = SE.getSCEV(const_cast<Value *>(LocA.Ptr)); in alias()
36 const SCEV *BS = SE.getSCEV(const_cast<Value *>(LocB.Ptr)); in alias()
H A DLoopAccessAnalysis.cpp146 const SCEV *OrigSCEV = PSE.getSCEV(Ptr); in replaceSymbolicStrideSCEV()
159 const auto *U = cast<SCEVUnknown>(SE->getSCEV(StrideVal)); in replaceSymbolicStrideSCEV()
164 auto *Expr = PSE.getSCEV(Ptr); in replaceSymbolicStrideSCEV()
658 const SCEV *PtrScev = PSE.getSCEV(Ptr); in isNoWrap()
684 auto *Expr = PSE.getSCEV(Ptr); in createCheckForAccess()
1019 auto *OpScev = PSE.getSCEV(OBO->getOperand(0)); in isNoWrapAddRec()
1187 const SCEV *PtrSCEVA = SE.getSCEV(PtrA); in getPointersDiff()
1188 const SCEV *PtrSCEVB = SE.getSCEV(PtrB); in getPointersDiff()
1494 const SCEV *Src = PSE.getSCEV(APtr); in isDependent()
1495 const SCEV *Sink = PSE.getSCEV(BPtr); in isDependent()
[all …]
H A DIVUsers.cpp199 const SCEV *ISE = SE->getSCEV(I); in AddUsersImpl()
284 LLVM_DEBUG(if (SE->getSCEV(I) != ISE) dbgs() in AddUsersImpl()
386 return SE->getSCEV(IU.getOperandValToReplace()); in getReplacementExpr()
H A DIVDescriptors.cpp1100 assert(PSE.getSCEV(PN) == AR && "Unexpected phi node SCEV expression"); in getCastsForInductionPHI()
1146 auto *AddRec = dyn_cast<SCEVAddRecExpr>(PSE.getSCEV(Val)); in getCastsForInductionPHI()
1182 const SCEV *PhiScev = PSE.getSCEV(Phi); in isInductionPHI()
1220 const SCEV *PhiScev = Expr ? Expr : SE->getSCEV(Phi); in isInductionPHI()
H A DLoopUnrollAnalyzer.cpp32 const SCEV *S = SE.getSCEV(I); in simplifyInstWithSCEV()
H A DLoopInfo.cpp217 if (SE.getSCEV(StepInstOp1) == Step) in getBounds()
219 else if (SE.getSCEV(StepInstOp0) == Step) in getBounds()
276 dyn_cast<SCEVAddRecExpr>(SE.getSCEV(&getStepInst()))) in getDirection()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DBoundsChecking.cpp79 auto SizeRange = SE.getUnsignedRange(SE.getSCEV(Size)); in getBoundsCheckCond()
80 auto OffsetRange = SE.getUnsignedRange(SE.getSCEV(Offset)); in getBoundsCheckCond()
81 auto NeededSizeRange = SE.getUnsignedRange(SE.getSCEV(NeededSizeVal)); in getBoundsCheckCond()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp366 const SCEV *PtrSCEVA = SE.getSCEV(PtrA); in areConsecutivePointers()
367 const SCEV *PtrSCEVB = SE.getSCEV(PtrB); in areConsecutivePointers()
558 const SCEV *OffsetSCEVA = SE.getSCEV(ValA); in lookThroughComplexAddresses()
559 const SCEV *OffsetSCEVB = SE.getSCEV(OpB); in lookThroughComplexAddresses()

12