/external/llvm-project/llvm/unittests/Analysis/ |
D | ScalarEvolutionTest.cpp | 88 const SCEV *S0 = SE.getSCEV(V0); in TEST_F() 89 const SCEV *S1 = SE.getSCEV(V1); in TEST_F() 90 const SCEV *S2 = SE.getSCEV(V2); in TEST_F() 138 auto *S1 = SE.getSCEV(PN); in TEST_F() 139 auto *S2 = SE.getSCEV(PN); in TEST_F() 235 auto *FirstExprForIV0 = SE.getSCEV(IV0); in TEST_F() 236 auto *FirstExprForIV0Inc = SE.getSCEV(IV0Inc); in TEST_F() 237 auto *SecondExprForIV0 = SE.getSCEV(IV0); in TEST_F() 274 CheckCommutativeMulExprs(SE, SE.getSCEV(getInstructionByName(F, "x")), in TEST_F() 275 SE.getSCEV(getInstructionByName(F, "y")), in TEST_F() [all …]
|
/external/llvm/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 125 FoldedExpr = SE->getUDivExpr(SE->getSCEV(IVSrc), SE->getSCEV(D)); in foldIVUser() 132 if (SE->getSCEV(UseInst) != FoldedExpr) in foldIVUser() 139 assert(SE->getSCEV(UseInst) == FoldedExpr && "bad SCEV with folded oper"); in foldIVUser() 161 const SCEV *S = SE->getSCEV(ICmp->getOperand(IVOperIdx)); in eliminateIVComparison() 162 const SCEV *X = SE->getSCEV(ICmp->getOperand(1 - IVOperIdx)); in eliminateIVComparison() 243 const SCEV *IncomingS = SE->getSCEV(Incoming); in eliminateIVComparison() 279 const SCEV *S = SE->getSCEV(Rem->getOperand(0)); in eliminateIVRemainder() 280 const SCEV *X = SE->getSCEV(Rem->getOperand(1)); in eliminateIVRemainder() 370 const SCEV *LHS = SE->getSCEV(CI->getArgOperand(0)); in eliminateOverflowIntrinsic() 371 const SCEV *RHS = SE->getSCEV(CI->getArgOperand(1)); in eliminateOverflowIntrinsic() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 144 FoldedExpr = SE->getUDivExpr(SE->getSCEV(IVSrc), SE->getSCEV(D)); in foldIVUser() 148 SE->getSCEV(IVSrc) != SE->getMulExpr(FoldedExpr, SE->getSCEV(D))) in foldIVUser() 156 if (SE->getSCEV(UseInst) != FoldedExpr) in foldIVUser() 163 assert(SE->getSCEV(UseInst) == FoldedExpr && "bad SCEV with folded oper"); in foldIVUser() 216 const SCEV *IncomingS = SE->getSCEV(Incoming); in makeIVComparisonInvariant() 294 auto *N = SE->getSCEV(SDiv->getOperand(0)); in eliminateSDiv() 295 auto *D = SE->getSCEV(SDiv->getOperand(1)); in eliminateSDiv() 367 const SCEV *N = SE->getSCEV(NValue); in simplifyIVRemainder() 379 const SCEV *D = SE->getSCEV(DValue); in simplifyIVRemainder() 442 const SCEV *LHS = SE->getSCEV(WO->getLHS()); in eliminateOverflowIntrinsic() [all …]
|
/external/llvm/unittests/Analysis/ |
D | ScalarEvolutionTest.cpp | 65 const SCEV *S0 = SE.getSCEV(V0); in TEST_F() 66 const SCEV *S1 = SE.getSCEV(V1); in TEST_F() 67 const SCEV *S2 = SE.getSCEV(V2); in TEST_F() 117 A.push_back(SE.getSCEV(&*AI++)); in TEST_F() 118 A.push_back(SE.getSCEV(&*AI++)); in TEST_F() 119 A.push_back(SE.getSCEV(&*AI++)); in TEST_F() 120 A.push_back(SE.getSCEV(&*AI++)); in TEST_F() 121 A.push_back(SE.getSCEV(&*AI++)); in TEST_F() 125 B.push_back(SE.getSCEV(&*AI++)); in TEST_F() 126 B.push_back(SE.getSCEV(&*AI++)); in TEST_F() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Utils/ |
D | SimplifyIndVar.cpp | 146 FoldedExpr = SE->getUDivExpr(SE->getSCEV(IVSrc), SE->getSCEV(D)); in foldIVUser() 150 SE->getSCEV(IVSrc) != SE->getMulExpr(FoldedExpr, SE->getSCEV(D))) in foldIVUser() 158 if (SE->getSCEV(UseInst) != FoldedExpr) in foldIVUser() 165 assert(SE->getSCEV(UseInst) == FoldedExpr && "bad SCEV with folded oper"); in foldIVUser() 218 const SCEV *IncomingS = SE->getSCEV(Incoming); in makeIVComparisonInvariant() 296 auto *N = SE->getSCEV(SDiv->getOperand(0)); in eliminateSDiv() 297 auto *D = SE->getSCEV(SDiv->getOperand(1)); in eliminateSDiv() 369 const SCEV *N = SE->getSCEV(NValue); in simplifyIVRemainder() 381 const SCEV *D = SE->getSCEV(DValue); in simplifyIVRemainder() 444 const SCEV *LHS = SE->getSCEV(WO->getLHS()); in eliminateOverflowIntrinsic() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | NaryReassociate.cpp | 236 const SCEV *NewSCEV = SE->getSCEV(NewI); in doOneIteration() 281 OrigSCEV = SE->getSCEV(I); in tryReassociate() 284 OrigSCEV = SE->getSCEV(I); in tryReassociate() 370 IndexExprs.push_back(SE->getSCEV(*Index)); in tryReassociateGEPAtIndex() 372 IndexExprs[I] = SE->getSCEV(LHS); in tryReassociateGEPAtIndex() 436 if (SE->getSCEV(I)->isZero()) in tryReassociateBinaryOp() 453 const SCEV *AExpr = SE->getSCEV(A), *BExpr = SE->getSCEV(B); in tryReassociateBinaryOp() 454 const SCEV *RHSExpr = SE->getSCEV(RHS); in tryReassociateBinaryOp()
|
D | LoopLoadElimination.cpp | 121 auto *LoadPtrSCEV = cast<SCEVAddRecExpr>(PSE.getSCEV(LoadPtr)); in isDependenceDistanceOfOne() 122 auto *StorePtrSCEV = cast<SCEVAddRecExpr>(PSE.getSCEV(StorePtr)); in isDependenceDistanceOfOne() 432 auto *PtrSCEV = cast<SCEVAddRecExpr>(PSE.getSCEV(Ptr)); in propagateStoredValueToLoadUsers() 509 assert(isa<SCEVAddRecExpr>(PSE.getSCEV(Cand.Load->getPointerOperand())) && in processLoop() 512 isa<SCEVAddRecExpr>(PSE.getSCEV(Cand.Store->getPointerOperand())) && in processLoop() 575 PSE.getSCEV(Cand.Load->getPointerOperand())) || in processLoop() 577 PSE.getSCEV(Cand.Store->getPointerOperand())); in processLoop()
|
D | AlignmentFromAssumptions.cpp | 130 const SCEV *PtrSCEV = SE->getSCEV(Ptr); in getNewAlignment() 219 AlignSCEV = SE->getSCEV(AlignOB.Inputs[1].get()); in extractAlignmentInfo() 222 OffSCEV = SE->getSCEV(AlignOB.Inputs[2].get()); in extractAlignmentInfo() 241 const SCEV *AASCEV = SE->getSCEV(AAPtr); in processAssumption()
|
D | StraightLineStrengthReduce.cpp | 419 allocateCandidatesAndFindBasis(Candidate::Add, SE->getSCEV(LHS), Idx, S, I); in allocateCandidatesAndFindBasisForAdd() 424 allocateCandidatesAndFindBasis(Candidate::Add, SE->getSCEV(LHS), Idx, S, I); in allocateCandidatesAndFindBasisForAdd() 428 allocateCandidatesAndFindBasis(Candidate::Add, SE->getSCEV(LHS), One, RHS, in allocateCandidatesAndFindBasisForAdd() 452 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(B), Idx, RHS, I); in allocateCandidatesAndFindBasisForMul() 458 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(B), Idx, RHS, I); in allocateCandidatesAndFindBasisForMul() 462 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(LHS), Zero, RHS, in allocateCandidatesAndFindBasisForMul() 539 IndexExprs.push_back(SE->getSCEV(*I)); in allocateCandidatesAndFindBasisForGEP()
|
/external/llvm-project/llvm/unittests/Transforms/Scalar/ |
D | LICMTest.cpp | 70 ASSERT_EQ(SE.getBlockDisposition(SE.getSCEV(IBefore), LoopBB), in TEST() 81 SE.getBlockDisposition(SE.getSCEV(IAfter), LoopBB); in TEST() 84 SE.getBlockDisposition(SE.getSCEV(IAfter), LoopBB); in TEST()
|
/external/llvm/lib/Transforms/Scalar/ |
D | NaryReassociate.cpp | 250 const SCEV *OldSCEV = SE->getSCEV(&*I); in doOneIteration() 262 const SCEV *NewSCEV = SE->getSCEV(&*I); in doOneIteration() 376 IndexExprs.push_back(SE->getSCEV(*Index)); in tryReassociateGEPAtIndex() 378 IndexExprs[I] = SE->getSCEV(LHS); in tryReassociateGEPAtIndex() 390 GEP->getSourceElementType(), SE->getSCEV(GEP->getPointerOperand()), in tryReassociateGEPAtIndex() 457 const SCEV *AExpr = SE->getSCEV(A), *BExpr = SE->getSCEV(B); in tryReassociateBinaryOp() 458 const SCEV *RHSExpr = SE->getSCEV(RHS); in tryReassociateBinaryOp()
|
D | AlignmentFromAssumptions.cpp | 131 const SCEV *PtrSCEV = SE->getSCEV(Ptr); in getNewAlignment() 217 const SCEV *CmpLHSSCEV = SE->getSCEV(CmpLHS); in extractAlignmentInfo() 218 const SCEV *CmpRHSSCEV = SE->getSCEV(CmpRHS); in extractAlignmentInfo() 232 const SCEV *AndLHSSCEV = SE->getSCEV(AndLHS); in extractAlignmentInfo() 233 const SCEV *AndRHSSCEV = SE->getSCEV(AndRHS); in extractAlignmentInfo() 300 const SCEV *AASCEV = SE->getSCEV(AAPtr); in processAssumption()
|
D | StraightLineStrengthReduce.cpp | 370 allocateCandidatesAndFindBasis(Candidate::Add, SE->getSCEV(LHS), Idx, S, I); in allocateCandidatesAndFindBasisForAdd() 375 allocateCandidatesAndFindBasis(Candidate::Add, SE->getSCEV(LHS), Idx, S, I); in allocateCandidatesAndFindBasisForAdd() 379 allocateCandidatesAndFindBasis(Candidate::Add, SE->getSCEV(LHS), One, RHS, in allocateCandidatesAndFindBasisForAdd() 403 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(B), Idx, RHS, I); in allocateCandidatesAndFindBasisForMul() 409 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(B), Idx, RHS, I); in allocateCandidatesAndFindBasisForMul() 413 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(LHS), Zero, RHS, in allocateCandidatesAndFindBasisForMul() 490 IndexExprs.push_back(SE->getSCEV(*I)); in allocateCandidatesAndFindBasisForGEP() 503 SE->getSCEV(GEP->getPointerOperand()), in allocateCandidatesAndFindBasisForGEP()
|
D | IndVarSimplify.cpp | 167 const SCEV *FromBase = SE->getPointerBase(SE->getSCEV(FromPtr)); in isValidRewrite() 168 const SCEV *ToBase = SE->getPointerBase(SE->getSCEV(ToPtr)); in isValidRewrite() 1045 WideLHS = SE->getSCEV(WideDef); in cloneArithmeticIVUser() 1046 const SCEV *NarrowRHS = SE->getSCEV(NarrowUse->getOperand(1)); in cloneArithmeticIVUser() 1049 const SCEV *NarrowLHS = SE->getSCEV(NarrowUse->getOperand(0)); in cloneArithmeticIVUser() 1051 WideRHS = SE->getSCEV(WideDef); in cloneArithmeticIVUser() 1143 SE->getSCEV(DU.NarrowUse->getOperand(ExtendOperIdx)), WideType); in getExtendedOperandRecurrence() 1146 SE->getSCEV(DU.NarrowUse->getOperand(ExtendOperIdx)), WideType); in getExtendedOperandRecurrence() 1155 const SCEV *lhs = SE->getSCEV(DU.WideDef); in getExtendedOperandRecurrence() 1178 const SCEV *NarrowExpr = SE->getSCEV(NarrowUse); in getWideRecurrence() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | NaryReassociate.cpp | 238 const SCEV *OldSCEV = SE->getSCEV(&*I); in doOneIteration() 258 const SCEV *NewSCEV = SE->getSCEV(&*I); in doOneIteration() 374 IndexExprs.push_back(SE->getSCEV(*Index)); in tryReassociateGEPAtIndex() 376 IndexExprs[I] = SE->getSCEV(LHS); in tryReassociateGEPAtIndex() 440 if (SE->getSCEV(I)->isZero()) in tryReassociateBinaryOp() 457 const SCEV *AExpr = SE->getSCEV(A), *BExpr = SE->getSCEV(B); in tryReassociateBinaryOp() 458 const SCEV *RHSExpr = SE->getSCEV(RHS); in tryReassociateBinaryOp()
|
D | AlignmentFromAssumptions.cpp | 129 const SCEV *PtrSCEV = SE->getSCEV(Ptr); in getNewAlignment() 215 const SCEV *CmpLHSSCEV = SE->getSCEV(CmpLHS); in extractAlignmentInfo() 216 const SCEV *CmpRHSSCEV = SE->getSCEV(CmpRHS); in extractAlignmentInfo() 230 const SCEV *AndLHSSCEV = SE->getSCEV(AndLHS); in extractAlignmentInfo() 231 const SCEV *AndRHSSCEV = SE->getSCEV(AndRHS); in extractAlignmentInfo() 303 const SCEV *AASCEV = SE->getSCEV(AAPtr); in processAssumption()
|
D | IndVarSimplify.cpp | 219 const SCEV *FromBase = SE->getPointerBase(SE->getSCEV(FromPtr)); in isValidRewrite() 220 const SCEV *ToBase = SE->getPointerBase(SE->getSCEV(ToPtr)); in isValidRewrite() 655 if (auto *AddRec = dyn_cast<SCEVAddRecExpr>(SE->getSCEV(Inst))) in rewriteLoopExitValues() 1170 WideLHS = SE->getSCEV(WideDef); in cloneArithmeticIVUser() 1171 const SCEV *NarrowRHS = SE->getSCEV(NarrowUse->getOperand(1)); in cloneArithmeticIVUser() 1174 const SCEV *NarrowLHS = SE->getSCEV(NarrowUse->getOperand(0)); in cloneArithmeticIVUser() 1176 WideRHS = SE->getSCEV(WideDef); in cloneArithmeticIVUser() 1275 SE->getSCEV(DU.NarrowUse->getOperand(ExtendOperIdx)), WideType); in getExtendedOperandRecurrence() 1278 SE->getSCEV(DU.NarrowUse->getOperand(ExtendOperIdx)), WideType); in getExtendedOperandRecurrence() 1287 const SCEV *lhs = SE->getSCEV(DU.WideDef); in getExtendedOperandRecurrence() [all …]
|
D | StraightLineStrengthReduce.cpp | 406 allocateCandidatesAndFindBasis(Candidate::Add, SE->getSCEV(LHS), Idx, S, I); in allocateCandidatesAndFindBasisForAdd() 411 allocateCandidatesAndFindBasis(Candidate::Add, SE->getSCEV(LHS), Idx, S, I); in allocateCandidatesAndFindBasisForAdd() 415 allocateCandidatesAndFindBasis(Candidate::Add, SE->getSCEV(LHS), One, RHS, in allocateCandidatesAndFindBasisForAdd() 439 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(B), Idx, RHS, I); in allocateCandidatesAndFindBasisForMul() 445 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(B), Idx, RHS, I); in allocateCandidatesAndFindBasisForMul() 449 allocateCandidatesAndFindBasis(Candidate::Mul, SE->getSCEV(LHS), Zero, RHS, in allocateCandidatesAndFindBasisForMul() 526 IndexExprs.push_back(SE->getSCEV(*I)); in allocateCandidatesAndFindBasisForGEP()
|
/external/llvm-project/llvm/lib/Target/ARM/ |
D | MVETailPredication.cpp | 208 auto *EC= SE->getSCEV(ElemCount); in IsSafeActiveMask() 209 auto *TC = SE->getSCEV(TripCount); in IsSafeActiveMask() 264 auto *VW = SE->getSCEV(ConstantInt::get(TripCount->getType(), VectorWidth)); in IsSafeActiveMask() 267 SE->getSCEV(ConstantInt::get(TripCount->getType(), VectorWidth - 1))); in IsSafeActiveMask() 313 auto *IVExpr = SE->getSCEV(IV); in IsSafeActiveMask()
|
/external/llvm-project/llvm/unittests/Transforms/Utils/ |
D | ScalarEvolutionExpanderTest.cpp | 119 auto *S = SE.getSCEV(CastB); in TEST_F() 274 const SCEV *S = SE.getSCEV(Phi); in TEST_F() 285 Exp.expandCodeFor(SE.getSCEV(Add), nullptr, Ret); in TEST_F() 334 const SCEV *S = SE.getSCEV(S1); in TEST_F() 386 const SCEV *S = SE.getSCEV(S1); in TEST_F() 432 const SCEV *SC2 = SE.getSCEV(S2); in TEST_F() 435 const SCEV *SC1 = SE.getSCEV(S1); in TEST_F() 483 const SCEV *SC2 = SE.getSCEV(S2); in TEST_F() 486 const SCEV *SC1 = SE.getSCEV(S1); in TEST_F() 713 const SCEV *AndSCEV = SE.getSCEV(And); in TEST_F() [all …]
|
/external/llvm-project/llvm/lib/Analysis/ |
D | ScalarEvolution.cpp | 3410 const SCEV *BaseExpr = getSCEV(GEP->getPointerOperand()); in getGEPExpr() 3867 const SCEV *ScalarEvolution::getSCEV(Value *V) { in getSCEV() function in ScalarEvolution 4323 Result = SE.getSCEV(IsOne ? SI->getTrueValue() : SI->getFalseValue()); in visitUnknown() 4795 const SCEV *BEValue = getSCEV(BEValueV); in createAddRecFromPHIWithCastsImpl() 4883 const SCEV *StartVal = getSCEV(StartValueV); in createAddRecFromPHIWithCastsImpl() 5053 Accum = getSCEV(BO->RHS); in createSimpleAffineAddRec() 5055 Accum = getSCEV(BO->LHS); in createSimpleAffineAddRec() 5066 const SCEV *StartVal = getSCEV(StartValueV); in createSimpleAffineAddRec() 5123 const SCEV *BEValue = getSCEV(BEValueV); in createAddRecFromPHI() 5174 const SCEV *Ptr = getSCEV(GEP->getPointerOperand()); in createAddRecFromPHI() [all …]
|
D | ScalarEvolutionAliasAnalysis.cpp | 34 const SCEV *AS = SE.getSCEV(const_cast<Value *>(LocA.Ptr)); in alias() 35 const SCEV *BS = SE.getSCEV(const_cast<Value *>(LocB.Ptr)); in alias()
|
/external/llvm/lib/Analysis/ |
D | ScalarEvolutionAliasAnalysis.cpp | 34 const SCEV *AS = SE.getSCEV(const_cast<Value *>(LocA.Ptr)); in alias() 35 const SCEV *BS = SE.getSCEV(const_cast<Value *>(LocB.Ptr)); in alias()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | BoundsChecking.cpp | 79 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()
|
/external/llvm-project/llvm/lib/Transforms/Instrumentation/ |
D | BoundsChecking.cpp | 79 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()
|