/external/llvm/lib/Transforms/Scalar/ |
D | IndVarSimplify.cpp | 563 if (!SE->isLoopInvariant(ExitValue, L) || in rewriteLoopExitValues() 708 if (!L->isLoopInvariant(Cond)) in rewriteFirstIterationLoopExitValues() 939 static bool isLoopInvariant(Value *V, const Loop *L, const DominatorTree *DT) { in isLoopInvariant() function 953 L && L->getLoopPreheader() && isLoopInvariant(NarrowOper, L, DT); in createExtendInst() 1604 if (isLoopInvariant(IncI->getOperand(1), L, DT)) in getLoopPhiForCounter() 1614 if (isLoopInvariant(IncI->getOperand(0), L, DT)) in getLoopPhiForCounter() 1651 if (!isLoopInvariant(RHS, L, DT)) { in needsLFTR() 1652 if (!isLoopInvariant(LHS, L, DT)) in needsLFTR() 1847 assert(SE->isLoopInvariant(IVOffset, L) && in genLoopLimit() 1894 assert(SE->isLoopInvariant(IVLimit, L) && in genLoopLimit()
|
D | LoopVersioningLICM.cpp | 350 if (SE->isLoopInvariant(SE->getSCEV(Ptr), CurLoop)) in instructionSafeForVersioning() 364 if (SE->isLoopInvariant(SE->getSCEV(Ptr), CurLoop)) in instructionSafeForVersioning()
|
D | LoopDataPrefetch.cpp | 239 if (L->isLoopInvariant(PtrValue)) in runOnLoop()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Vectorize/ |
D | LoopVectorizationLegality.cpp | 376 if (!(CondOp0 == IVUpdate && OuterLp->isLoopInvariant(CondOp1)) && in isUniformLoop() 377 !(CondOp1 == IVUpdate && OuterLp->isLoopInvariant(CondOp0))) { in isUniformLoop() 491 !TheLoop->isLoopInvariant(Br->getCondition()) && in canVectorizeOuterLoop() 677 if (!SE->isLoopInvariant(PSE.getSCEV(CI->getOperand(1)), TheLoop)) { in canVectorizeInstrs()
|
/external/llvm/lib/Analysis/ |
D | LoopInfo.cpp | 55 bool Loop::isLoopInvariant(const Value *V) const { in isLoopInvariant() function in Loop 62 return all_of(I->operands(), [this](Value *V) { return isLoopInvariant(V); }); in hasLoopInvariantOperands() 75 if (isLoopInvariant(I)) in makeLoopInvariant()
|
D | VectorUtils.cpp | 136 !SE->isLoopInvariant(SE->getSCEV(GEP->getOperand(i)), Lp)) in stripGetElementPtr() 220 if (!Lp->isLoopInvariant(Stride)) in getStrideFromPointer()
|
D | DependenceAnalysis.cpp | 754 bool DependenceInfo::isLoopInvariant(const SCEV *Expression, in isLoopInvariant() function in DependenceInfo 758 return SE->isLoopInvariant(Expression, LoopNest) && in isLoopInvariant() 759 isLoopInvariant(Expression, LoopNest->getParentLoop()); in isLoopInvariant() 771 if (Level <= CommonLevels && !SE->isLoopInvariant(Expression, LoopNest)) in collectCommonLoops() 857 return isLoopInvariant(Src, LoopNest); in checkSrcSubscript() 868 if (!isLoopInvariant(Step, LoopNest)) in checkSrcSubscript() 882 return isLoopInvariant(Dst, LoopNest); in checkDstSubscript() 893 if (!isLoopInvariant(Step, LoopNest)) in checkDstSubscript() 2962 if (SE->isLoopInvariant(AddRec, TargetLoop)) in addToCoefficient() 3342 UsefulGEP = isLoopInvariant(SrcPtrSCEV, LI->getLoopFor(Src->getParent())) && in depends() [all …]
|
D | ScalarEvolutionExpander.cpp | 203 if (!L->isLoopInvariant(LHS) || !L->isLoopInvariant(RHS)) break; in InsertBinop() 530 if (!L->isLoopInvariant(V) || !L->isLoopInvariant(Idx)) break; in expandAddToGEP() 550 if (!L->isLoopInvariant(V)) break; in expandAddToGEP() 554 [L](Value *Op) { return !L->isLoopInvariant(Op); }); in expandAddToGEP() 1669 if (SE.isLoopInvariant(S, L)) { in expand()
|
D | LoopAccessAnalysis.cpp | 162 if (SE->isLoopInvariant(Sc, Lp)) in insert() 561 if (PSE.getSE()->isLoopInvariant(PtrScev, L)) in hasComputableBounds() 575 if (PSE.getSE()->isLoopInvariant(PtrScev, L)) in isNoWrap() 1754 return (PSE->getSE()->isLoopInvariant(PSE->getSE()->getSCEV(V), TheLoop)); in isUniform() 1788 if (SE->isLoopInvariant(Sc, TheLoop)) { in expandBounds()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | LoopInfo.cpp | 57 bool Loop::isLoopInvariant(const Value *V) const { in isLoopInvariant() function in Loop 64 return all_of(I->operands(), [this](Value *V) { return isLoopInvariant(V); }); in hasLoopInvariantOperands() 77 if (isLoopInvariant(I)) in makeLoopInvariant()
|
D | VectorUtils.cpp | 138 !SE->isLoopInvariant(SE->getSCEV(GEP->getOperand(i)), Lp)) in stripGetElementPtr() 222 if (!Lp->isLoopInvariant(Stride)) in getStrideFromPointer()
|
D | ScalarEvolutionExpander.cpp | 216 if (!L->isLoopInvariant(LHS) || !L->isLoopInvariant(RHS)) break; in InsertBinop() 543 if (!L->isLoopInvariant(V) || !L->isLoopInvariant(Idx)) break; in expandAddToGEP() 563 if (!L->isLoopInvariant(V)) break; in expandAddToGEP() 566 GepIndices, [L](Value *Op) { return !L->isLoopInvariant(Op); }); in expandAddToGEP() 1737 if (SE.isLoopInvariant(S, L)) { in expand()
|
D | LoopAccessAnalysis.cpp | 201 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() 2032 return (SE->isLoopInvariant(SE->getSCEV(V), TheLoop)); in isUniform() 2074 if (SE->isLoopInvariant(Sc, TheLoop)) { in expandBounds()
|
D | ScalarEvolution.cpp | 2364 return isLoopInvariant(S, L) && properlyDominates(S, L->getHeader()); in isAvailableAtLoopEntry() 3356 assert(isLoopInvariant(Operands[i], L) && in getAddRecExpr() 3387 Operands, [&](const SCEV *Op) { return isLoopInvariant(Op, L); }); in getAddRecExpr() 3399 return isLoopInvariant(Op, NestedLoop); in getAddRecExpr() 4229 if (!SE.isLoopInvariant(Expr, L)) in visitUnknown() 4270 if (!SE.isLoopInvariant(Expr, L)) in visitUnknown() 4323 bool InvariantF = SE.isLoopInvariant(Expr, L); in visitUnknown() 4387 if (!SE.isLoopInvariant(Expr, L)) in visitUnknown() 4760 if (!isLoopInvariant(Accum, L)) in createAddRecFromPHIWithCastsImpl() 4844 assert(isLoopInvariant(Expr, L) && "Expr is expected to be invariant"); in createAddRecFromPHIWithCastsImpl() [all …]
|
D | DependenceAnalysis.cpp | 769 bool DependenceInfo::isLoopInvariant(const SCEV *Expression, in isLoopInvariant() function in DependenceInfo 773 return SE->isLoopInvariant(Expression, LoopNest) && in isLoopInvariant() 774 isLoopInvariant(Expression, LoopNest->getParentLoop()); in isLoopInvariant() 786 if (Level <= CommonLevels && !SE->isLoopInvariant(Expression, LoopNest)) in collectCommonLoops() 872 return isLoopInvariant(Src, LoopNest); in checkSrcSubscript() 883 if (!isLoopInvariant(Step, LoopNest)) in checkSrcSubscript() 897 return isLoopInvariant(Dst, LoopNest); in checkDstSubscript() 908 if (!isLoopInvariant(Step, LoopNest)) in checkDstSubscript() 3034 if (SE->isLoopInvariant(AddRec, TargetLoop)) in addToCoefficient()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | IndVarSimplify.cpp | 609 if (!SE->isLoopInvariant(ExitValue, L) || in rewriteLoopExitValues() 754 if (!L->isLoopInvariant(Cond)) in rewriteFirstIterationLoopExitValues() 1036 static bool isLoopInvariant(Value *V, const Loop *L, const DominatorTree *DT) { in isLoopInvariant() function 1050 L && L->getLoopPreheader() && isLoopInvariant(NarrowOper, L, DT); in createExtendInst() 1890 if (isLoopInvariant(IncI->getOperand(1), L, DT)) in getLoopPhiForCounter() 1900 if (isLoopInvariant(IncI->getOperand(0), L, DT)) in getLoopPhiForCounter() 1937 if (!isLoopInvariant(RHS, L, DT)) { in needsLFTR() 1938 if (!isLoopInvariant(LHS, L, DT)) in needsLFTR() 2133 assert(SE->isLoopInvariant(IVOffset, L) && in genLoopLimit() 2180 assert(SE->isLoopInvariant(IVLimit, L) && in genLoopLimit()
|
D | LoopVersioningLICM.cpp | 383 if (SE->isLoopInvariant(SE->getSCEV(Ptr), CurLoop)) in instructionSafeForVersioning() 397 if (SE->isLoopInvariant(SE->getSCEV(Ptr), CurLoop)) in instructionSafeForVersioning()
|
D | SimpleLoopUnswitch.cpp | 83 assert(!L.isLoopInvariant(&Root) && in collectHomogenousInstGraphLoopInvariants() 100 if (L.isLoopInvariant(OpV)) { in collectHomogenousInstGraphLoopInvariants() 147 if (!L.isLoopInvariant(PN->getIncomingValueForBlock(&ExitingBB))) in areLoopExitPHIsLoopInvariant() 341 if (L.isLoopInvariant(BI.getCondition())) { in unswitchTrivialBranch() 522 if (!L.isLoopInvariant(LoopCond)) in unswitchTrivialSwitch() 2191 L.isLoopInvariant(SI->getCondition())) in unswitchBestCondition() 2201 if (L.isLoopInvariant(BI->getCondition())) { in unswitchBestCondition()
|
D | LICM.cpp | 316 AS.isVolatile() || !L->isLoopInvariant(AS.begin()->getValue())) in runOnLoop() 497 CurLoop->isLoopInvariant(I.getOperand(1)) && in hoistRegion() 616 if (ORE && Invalidated && CurLoop->isLoopInvariant(LI->getPointerOperand())) in canSinkOrHoistInst() 1091 if (LI && CurLoop->isLoopInvariant(LI->getPointerOperand())) in isSafeToExecuteUnconditionally()
|
D | LoopPredication.cpp | 364 if (SE->isLoopInvariant(LHSS, L)) { in parseLoopICmp() 427 return SE->isLoopInvariant(S, L) && isSafeToExpand(S, *SE); in CanExpand()
|
D | LoopDataPrefetch.cpp | 270 if (L->isLoopInvariant(PtrValue)) in runOnLoop()
|
/external/llvm/lib/Target/PowerPC/ |
D | PPCLoopPreIncPrep.cpp | 213 if (L->isLoopInvariant(PtrValue)) in runOnLoop() 322 if (!SE->isLoopInvariant(BasePtrStartSCEV, L)) in runOnLoop()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
D | PPCLoopPreIncPrep.cpp | 290 if (L->isLoopInvariant(PtrValue)) in runOnLoop() 412 if (!SE->isLoopInvariant(BasePtrStartSCEV, L)) in runOnLoop()
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/LoopSimplify/ |
D | ashr-crash.ll | 4 ; Assertion `isLoopInvariant(Operands[i],...
|
/external/llvm/test/Transforms/LoopSimplify/ |
D | ashr-crash.ll | 4 ; Assertion `isLoopInvariant(Operands[i],...
|