Searched refs:TripCount (Results 1 - 15 of 15) sorted by relevance

/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/ARM/
H A DMVETailPredication.cpp116 bool TryConvert(Value *TripCount);
126 bool IsSafeActiveMask(IntrinsicInst *ActiveLaneMask, Value *TripCount,
130 void InsertVCTPIntrinsic(IntrinsicInst *ActiveLaneMask, Value *TripCount,
352 // ceil(ElementCount / VectorWidth) >= TripCount
356 // (((ElementCount + (VectorWidth - 1)) / VectorWidth) - TripCount
360 Value *TripCount, FixedVectorType *VecTy) {
384 // (((ElementCount + (VectorWidth - 1)) / VectorWidth) - TripCount
392 // TripCount (TC), for which we can find meaningful value ranges, we use that
397 auto *TC = SE->getSCEV(TripCount);
398 unsigned SizeInBits = TripCount
359 IsSafeActiveMask(IntrinsicInst *ActiveLaneMask, Value *TripCount, FixedVectorType *VecTy) argument
520 InsertVCTPIntrinsic(IntrinsicInst *ActiveLaneMask, Value *TripCount, FixedVectorType *VecTy) argument
572 TryConvert(Value *TripCount) argument
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DUnrollLoop.h69 unsigned TripCount; member in struct:llvm::UnrollLoopOptions
98 unsigned &TripCount, ScalarEvolution &SE);
105 LoopUnrollResult UnrollAndJamLoop(Loop *L, unsigned Count, unsigned TripCount,
119 OptimizationRemarkEmitter *ORE, unsigned &TripCount,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DLoopCacheAnalysis.cpp274 const SCEV *TripCount = computeTripCount(L, SE);
275 if (!TripCount) {
279 TripCount = SE.getConstant(ElemSize->getType(), DefaultTripCount);
281 LLVM_DEBUG(dbgs() << "TripCount=" << *TripCount << "\n");
284 // (TripCount*Stride)/CLS, otherwise the cost is TripCount.
285 const SCEV *RefCost = TripCount;
292 Type *WiderType = SE.getWiderType(Stride->getType(), TripCount->getType());
296 TripCount
[all...]
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopUnrollPass.cpp374 const Loop *L, unsigned TripCount, DominatorTree &DT, ScalarEvolution &SE,
391 if (!TripCount || TripCount > MaxIterationsCountToAnalyze)
513 for (unsigned Iteration = 0; Iteration < TripCount; ++Iteration) {
668 AddCostRecursively(*OpI, TripCount - 1);
779 OptimizationRemarkEmitter *ORE, unsigned &TripCount, unsigned MaxTripCount,
807 if (PragmaFullUnroll && TripCount != 0) {
808 UP.Count = TripCount;
817 if (ExplicitUnroll && TripCount != 0) {
827 // Full unroll makes sense only when TripCount o
373 analyzeLoopUnrollCost( const Loop *L, unsigned TripCount, DominatorTree &DT, ScalarEvolution &SE, const SmallPtrSetImpl<const Value *> &EphValues, const TargetTransformInfo &TTI, unsigned MaxUnrolledLoopSize, unsigned MaxIterationsCountToAnalyze) argument
776 computeUnrollCount( Loop *L, const TargetTransformInfo &TTI, DominatorTree &DT, LoopInfo *LI, ScalarEvolution &SE, const SmallPtrSetImpl<const Value *> &EphValues, OptimizationRemarkEmitter *ORE, unsigned &TripCount, unsigned MaxTripCount, bool MaxOrZero, unsigned &TripMultiple, unsigned LoopSize, TargetTransformInfo::UnrollingPreferences &UP, TargetTransformInfo::PeelingPreferences &PP, bool &UseUpperBound) argument
1122 unsigned TripCount = 0; local
[all...]
H A DLoopRerollPass.cpp1470 auto TripCount = SE->getAddExpr(BackedgeTakenCount, One); local
1472 TripCount, SE->getConstant(BackedgeTakenCount->getType(), Scale));
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopUnroll.cpp248 /// TripCount is the upper bound of the iteration on which control exits
249 /// LatchBlock. Control may exit the loop prior to TripCount iterations either
255 /// prior to TripCount iterations, flag PreserveCondBr needs to be set.
344 if (ULO.TripCount != 0)
345 LLVM_DEBUG(dbgs() << " Trip Count = " << ULO.TripCount << "\n");
351 if (ULO.TripCount != 0 && ULO.Count > ULO.TripCount)
352 ULO.Count = ULO.TripCount;
355 if (ULO.TripCount == 0 && ULO.Count < 2 && ULO.PeelCount == 0) {
362 assert(ULO.TripCount
[all...]
H A DLoopUnrollAndJam.cpp223 llvm::UnrollAndJamLoop(Loop *L, unsigned Count, unsigned TripCount, argument
236 if (TripCount == 0 && Count < 2) {
243 assert(TripCount == 0 || TripCount % TripMultiple == 0);
246 bool CompletelyUnroll = (Count == TripCount);
271 << Header->getName() << " with trip count " << TripCount
276 << NV("UnrollCount", TripCount) << " iterations");
H A DLoopUnrollPeel.cpp283 unsigned &TripCount, ScalarEvolution &SE) {
367 if (TripCount)
412 /// Then, Estimated TripCount = F / E.
H A DLoopUnrollRuntime.cpp713 Value *TripCount = Expander.expandCodeFor(TripCountSC, TripCountSC->getType(), local
720 // Note that TripCount is BECount + 1.
724 ModVal = B.CreateAnd(TripCount, Count - 1, "xtraiter");
727 // 2. The addition computing TripCount overflowed.
729 // If (2) is true, we know that TripCount really is (1 << BEWidth) and so
895 Value *TestVal = B2.CreateSub(TripCount, ModVal, "unroll_iter");
946 {/*Count*/ Count - 1, /*TripCount*/ Count - 1,
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonHardwareLoops.cpp1205 CountValue *TripCount = getLoopTripCount(L, OldInsts); local
1206 if (!TripCount)
1210 if (TripCount->isReg()) {
1213 MachineInstr *TCDef = MRI->getVRegDef(TripCount->getReg());
1246 if (TripCount->isReg()) {
1250 .addReg(TripCount->getReg(), 0, TripCount->getSubReg());
1255 assert(TripCount->isImm() && "Expecting immediate value for trip count");
1259 int64_t CountImm = TripCount->getImm();
1301 delete TripCount;
[all...]
H A DHexagonInstrInfo.cpp688 int64_t TripCount; member in class:__anon4137::HexagonPipelinerLoopInfo
699 TripCount = Loop->getOpcode() == Hexagon::J2_loop0r
702 if (TripCount == -1)
714 if (TripCount == -1) {
726 return TripCount > TC;
739 int64_t TripCount = Loop->getOperand(1).getImm() + TripCountAdjust; variable
740 assert(TripCount > 0 && "Can't create an empty or negative loop!");
741 Loop->getOperand(1).setImm(TripCount);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCInstrInfo.cpp4540 int64_t TripCount;
4551 TripCount = LoopCount->getOperand(1).getImm();
4553 TripCount = -1;
4564 if (TripCount == -1) {
4574 return TripCount > TC;
4587 int64_t TripCount = LoopCount->getOperand(1).getImm() + TripCountAdjust;
4588 LoopCount->getOperand(1).setImm(TripCount);
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoopVectorize.cpp761 Value *TripCount = nullptr; member in class:llvm::InnerLoopVectorizer
763 /// Trip count of the widened loop (TripCount - TripCount % (VF*UF))
2576 if (TripCount)
2577 return TripCount;
2611 TripCount = Exp.expandCodeFor(ExitCount, ExitCount->getType(),
2614 if (TripCount->getType()->isPointerTy())
2615 TripCount =
2616 CastInst::CreatePointerCast(TripCount, IdxTy, "exitcount.ptrcnt.to.int",
2619 return TripCount;
[all...]
H A DVPlan.cpp458 Value *TC = State->TripCount;
H A DVPlan.h345 Value *TripCount = nullptr;

Completed in 227 milliseconds