Home
last modified time | relevance | path

Searched refs:TripCount (Results 1 – 12 of 12) sorted by relevance

/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/
DLoopUnrollPass.cpp148 unsigned TripCount = 0; in runOnLoop() local
156 TripCount = SE->getSmallConstantTripCount(L, LatchBlock); in runOnLoop()
161 TripCount = L->getSmallConstantTripCount(); in runOnLoop()
162 if (TripCount == 0) in runOnLoop()
172 if (TripCount == 0) in runOnLoop()
174 Count = TripCount; in runOnLoop()
188 if (TripCount != 1 && Size > Threshold) { in runOnLoop()
198 while (Count != 0 && TripCount%Count != 0) { in runOnLoop()
210 if (!UnrollLoop(L, Count, TripCount, TripMultiple, LI, &LPM)) in runOnLoop()
/external/llvm/lib/Transforms/Scalar/
DLoopUnrollPass.cpp235 analyzeLoopUnrollCost(const Loop *L, unsigned TripCount, DominatorTree &DT, in analyzeLoopUnrollCost() argument
250 if (!UnrollMaxIterationsCountToAnalyze || !TripCount || in analyzeLoopUnrollCost()
251 TripCount > UnrollMaxIterationsCountToAnalyze) in analyzeLoopUnrollCost()
373 for (unsigned Iteration = 0; Iteration < TripCount; ++Iteration) { in analyzeLoopUnrollCost()
518 AddCostRecursively(*OpI, TripCount - 1); in analyzeLoopUnrollCost()
694 ScalarEvolution *SE, unsigned TripCount, in computeUnrollCount() argument
726 if (PragmaFullUnroll && TripCount != 0) { in computeUnrollCount()
727 UP.Count = TripCount; in computeUnrollCount()
741 if (ExplicitUnroll && TripCount != 0) { in computeUnrollCount()
753 if (TripCount && TripCount <= UP.FullUnrollMaxCount) { in computeUnrollCount()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DLoopUnroll.cpp137 bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount, in UnrollLoop() argument
174 if (TripCount != 0) in UnrollLoop()
175 DEBUG(dbgs() << " Trip Count = " << TripCount << "\n"); in UnrollLoop()
181 if (TripCount != 0 && Count > TripCount) in UnrollLoop()
182 Count = TripCount; in UnrollLoop()
186 assert(TripCount == 0 || TripCount % TripMultiple == 0); in UnrollLoop()
189 bool CompletelyUnroll = Count == TripCount; in UnrollLoop()
193 if (TripCount != 0) { in UnrollLoop()
194 BreakoutTrip = TripCount % Count; in UnrollLoop()
204 << " with trip count " << TripCount << "!\n"); in UnrollLoop()
/external/llvm/lib/Transforms/Utils/
DLoopUnroll.cpp203 bool llvm::UnrollLoop(Loop *L, unsigned Count, unsigned TripCount, bool Force, in UnrollLoop() argument
243 if (TripCount != 0) in UnrollLoop()
244 DEBUG(dbgs() << " Trip Count = " << TripCount << "\n"); in UnrollLoop()
250 if (TripCount != 0 && Count > TripCount) in UnrollLoop()
251 Count = TripCount; in UnrollLoop()
255 if (TripCount == 0 && Count < 2) in UnrollLoop()
260 assert(TripCount == 0 || TripCount % TripMultiple == 0); in UnrollLoop()
263 bool CompletelyUnroll = Count == TripCount; in UnrollLoop()
281 bool RuntimeTripCount = (TripCount == 0 && Count > 0 && AllowRuntime); in UnrollLoop()
316 if (TripCount != 0) { in UnrollLoop()
[all …]
DLoopUnrollRuntime.cpp544 Value *TripCount = Expander.expandCodeFor(TripCountSC, TripCountSC->getType(), in UnrollRuntimeLoopRemainder() local
555 ModVal = B.CreateAnd(TripCount, Count - 1, "xtraiter"); in UnrollRuntimeLoopRemainder()
654 Value *TestVal = B2.CreateSub(TripCount, ModVal, "unroll_iter"); in UnrollRuntimeLoopRemainder()
/external/llvm/unittests/Analysis/
DUnrollAnalyzer.cpp22 static unsigned TripCount = 0; variable
38 TripCount = SE->getSmallConstantTripCount(L, Exiting); in runOnFunction()
39 for (unsigned Iteration = 0; Iteration < TripCount; Iteration++) { in runOnFunction()
119 I1 = SimplifiedValuesVector[TripCount - 1].find(Y1); in TEST()
120 EXPECT_TRUE(I1 != SimplifiedValuesVector[TripCount - 1].end()); in TEST()
121 EXPECT_EQ(cast<ConstantInt>((*I1).second)->getZExtValue(), TripCount); in TEST()
124 I2 = SimplifiedValuesVector[TripCount - 1].find(Y2); in TEST()
125 EXPECT_TRUE(I2 != SimplifiedValuesVector[TripCount - 1].end()); in TEST()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DLoopInfo.cpp208 Value* TripCount = this->getTripCount(); in getSmallConstantTripCount() local
209 if (TripCount) { in getSmallConstantTripCount()
210 if (ConstantInt *TripCountC = dyn_cast<ConstantInt>(TripCount)) { in getSmallConstantTripCount()
230 Value* TripCount = this->getTripCount(); in getSmallConstantTripMultiple() local
233 if (TripCount) { in getSmallConstantTripMultiple()
235 Result = dyn_cast<ConstantInt>(TripCount); in getSmallConstantTripMultiple()
238 if (BinaryOperator *BO = dyn_cast<BinaryOperator>(TripCount)) { in getSmallConstantTripMultiple()
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/
DUnrollLoop.h25 bool UnrollLoop(Loop *L, unsigned Count, unsigned TripCount,
/external/llvm/include/llvm/Transforms/Utils/
DUnrollLoop.h32 bool UnrollLoop(Loop *L, unsigned Count, unsigned TripCount, bool Force,
/external/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp1167 CountValue *TripCount = getLoopTripCount(L, OldInsts); in convertToHardwareLoop() local
1168 if (!TripCount) in convertToHardwareLoop()
1172 if (TripCount->isReg()) { in convertToHardwareLoop()
1175 MachineInstr *TCDef = MRI->getVRegDef(TripCount->getReg()); in convertToHardwareLoop()
1208 if (TripCount->isReg()) { in convertToHardwareLoop()
1212 .addReg(TripCount->getReg(), 0, TripCount->getSubReg()); in convertToHardwareLoop()
1217 assert(TripCount->isImm() && "Expecting immediate value for trip count"); in convertToHardwareLoop()
1221 int64_t CountImm = TripCount->getImm(); in convertToHardwareLoop()
1263 delete TripCount; in convertToHardwareLoop()
/external/llvm/test/Transforms/LoopUnroll/
Dpartial-unroll-const-bounds.ll3 ; The Loop TripCount is 9. However unroll factors 3 or 9 exceed given threshold.
/external/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp297 OldInduction(nullptr), WidenMap(UnrollFactor), TripCount(nullptr), in InnerLoopVectorizer()
591 Value *TripCount; member in __anonfb91178e0111::InnerLoopVectorizer
2756 if (TripCount) in getOrCreateTripCount()
2757 return TripCount; in getOrCreateTripCount()
2789 TripCount = Exp.expandCodeFor(ExitCount, ExitCount->getType(), in getOrCreateTripCount()
2792 if (TripCount->getType()->isPointerTy()) in getOrCreateTripCount()
2793 TripCount = in getOrCreateTripCount()
2794 CastInst::CreatePointerCast(TripCount, IdxTy, "exitcount.ptrcnt.to.int", in getOrCreateTripCount()
2797 return TripCount; in getOrCreateTripCount()