Home
last modified time | relevance | path

Searched refs:LoopSize (Results 1 – 10 of 10) sorted by relevance

/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DUnrollLoop.h123 InstructionCost LoopSize; variable
135 bool canUnroll() const { return LoopSize.isValid() && !NotDuplicatable; } in canUnroll()
137 uint64_t getRolledLoopSize() const { return *LoopSize.getValue(); } in getRolledLoopSize()
H A DLoopPeel.h37 void computePeelCount(Loop *L, unsigned LoopSize,
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DLoopDataPrefetch.cpp308 unsigned LoopSize = *Metrics.NumInsts.getValue(); in runOnLoop() local
309 if (!LoopSize) in runOnLoop()
310 LoopSize = 1; in runOnLoop()
312 unsigned ItersAhead = getPrefetchDistance() / LoopSize; in runOnLoop()
378 << " iterations ahead (loop size: " << LoopSize << ") in " in runOnLoop()
H A DLoopUnrollPass.cpp677 LoopSize = Metrics.NumInsts; in UnrollCostEstimator()
685 if (LoopSize.isValid() && LoopSize < BEInsns + 1) in UnrollCostEstimator()
687 LoopSize = BEInsns + 1; in UnrollCostEstimator()
693 unsigned LS = *LoopSize.getValue(); in getUnrolledLoopSize()
821 shouldPartialUnroll(const unsigned LoopSize, const unsigned TripCount, in shouldPartialUnroll() argument
840 (LoopSize - UP.BEInsns); in shouldPartialUnroll()
885 unsigned LoopSize = UCE.getRolledLoopSize(); in computeUnrollCount() local
969 computePeelCount(L, LoopSize, PP, TripCount, DT, SE, AC, UP.Threshold); in computeUnrollCount()
1190 unsigned LoopSize = UCE.getRolledLoopSize(); in tryToUnrollLoop() local
1191 LLVM_DEBUG(dbgs() << " Loop Size = " << LoopSize << "\n"); in tryToUnrollLoop()
[all …]
H A DLoopUnrollAndJamPass.cpp143 getUnrollAndJammedLoopSize(unsigned LoopSize, in getUnrollAndJammedLoopSize() argument
145 assert(LoopSize >= UP.BEInsns && "LoopSize should not be less than BEInsns!"); in getUnrollAndJammedLoopSize()
146 return static_cast<uint64_t>(LoopSize - UP.BEInsns) * UP.Count + UP.BEInsns; in getUnrollAndJammedLoopSize()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopPeel.cpp498 void llvm::computePeelCount(Loop *L, unsigned LoopSize, in computePeelCount() argument
503 assert(LoopSize > 0 && "Zero loop size is not allowed!"); in computePeelCount()
532 if (2 * LoopSize > Threshold) in computePeelCount()
544 MaxPeelCount = std::min(MaxPeelCount, Threshold / LoopSize - 1); in computePeelCount()
614 LLVM_DEBUG(dbgs() << "Loop cost: " << LoopSize << "\n"); in computePeelCount()
617 << (Threshold / LoopSize - 1) << "\n"); in computePeelCount()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64FrameLowering.cpp3784 int64_t LoopSize = Size; in emitLoop() local
3788 LoopSize -= LoopSize % 32; in emitLoop()
3794 .addImm(LoopSize) in emitLoop()
3802 if (LoopSize < Size) { in emitLoop()
3804 assert(Size - LoopSize == 16); in emitLoop()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIISelLowering.cpp15559 unsigned LoopSize = 0; in getPrefLoopAlignment() local
15564 LoopSize += MBB->getAlignment().value() / 2; in getPrefLoopAlignment()
15567 LoopSize += TII->getInstSizeInBytes(MI); in getPrefLoopAlignment()
15568 if (LoopSize > 192) in getPrefLoopAlignment()
15573 if (LoopSize <= 64) in getPrefLoopAlignment()
15576 if (LoopSize <= 128) in getPrefLoopAlignment()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp16477 uint64_t LoopSize = 0; in getPrefLoopAlignment() local
16480 LoopSize += TII->getInstSizeInBytes(J); in getPrefLoopAlignment()
16481 if (LoopSize > 32) in getPrefLoopAlignment()
16485 if (LoopSize > 16 && LoopSize <= 32) in getPrefLoopAlignment()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp11495 unsigned LoopSize = SizeVal - BytesLeft; in EmitStructByval() local
11503 for (unsigned i = 0; i < LoopSize; i+=UnitSize) { in EmitStructByval()
11573 .addImm(LoopSize); in EmitStructByval()
11576 BuildMI(BB, dl, TII->get(ARM::tMOVi32imm), varEnd).addImm(LoopSize); in EmitStructByval()
11580 const Constant *C = ConstantInt::get(Int32Ty, LoopSize); in EmitStructByval()