Home
last modified time | relevance | path

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

/freebsd/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.cpp692 LoopSize = Metrics.NumInsts; in UnrollCostEstimator()
703 if (LoopSize.isValid() && LoopSize < BEInsns + 1) in UnrollCostEstimator()
705 LoopSize = BEInsns + 1; in UnrollCostEstimator()
716 if (!LoopSize.isValid()) { in canUnroll()
730 unsigned LS = *LoopSize.getValue(); in getUnrolledLoopSize()
867 shouldPartialUnroll(const unsigned LoopSize, const unsigned TripCount, in shouldPartialUnroll() argument
886 (LoopSize - UP.BEInsns); in shouldPartialUnroll()
931 unsigned LoopSize = UCE.getRolledLoopSize(); in computeUnrollCount() local
1015 computePeelCount(L, LoopSize, PP, TripCount, DT, SE, AC, UP.Threshold); in computeUnrollCount()
1029 if (auto UnrollFactor = shouldPartialUnroll(LoopSize, TripCount, UCE, UP)) { in computeUnrollCount()
[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/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/
H A DUnrollLoop.h128 InstructionCost LoopSize; variable
143 uint64_t getRolledLoopSize() const { return *LoopSize.getValue(); } in getRolledLoopSize()
H A DLoopPeel.h37 void computePeelCount(Loop *L, unsigned LoopSize,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLoopPeel.cpp538 void llvm::computePeelCount(Loop *L, unsigned LoopSize, in computePeelCount() argument
543 assert(LoopSize > 0 && "Zero loop size is not allowed!"); in computePeelCount()
572 if (2 * LoopSize > Threshold) in computePeelCount()
584 MaxPeelCount = std::min(MaxPeelCount, Threshold / LoopSize - 1); in computePeelCount()
654 LLVM_DEBUG(dbgs() << "Loop cost: " << LoopSize << "\n"); in computePeelCount()
657 << (Threshold / LoopSize - 1) << "\n"); in computePeelCount()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64FrameLowering.cpp4270 int64_t LoopSize = Size; in emitLoop() local
4274 LoopSize -= LoopSize % 32; in emitLoop()
4280 .addImm(LoopSize) in emitLoop()
4288 if (LoopSize < Size) { in emitLoop()
4290 assert(Size - LoopSize == 16); in emitLoop()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUIGroupLP.cpp1750 unsigned LoopSize = std::min(ExpLoopCount, MFMALoopCount); in applyIGLPStrategy() local
1752 for (unsigned I = 0; I < LoopSize; I++) { in applyIGLPStrategy()
H A DSIISelLowering.cpp15894 unsigned LoopSize = 0; in getPrefLoopAlignment() local
15899 LoopSize += MBB->getAlignment().value() / 2; in getPrefLoopAlignment()
15902 LoopSize += TII->getInstSizeInBytes(MI); in getPrefLoopAlignment()
15903 if (LoopSize > 192) in getPrefLoopAlignment()
15908 if (LoopSize <= 64) in getPrefLoopAlignment()
15911 if (LoopSize <= 128) in getPrefLoopAlignment()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCISelLowering.cpp16691 uint64_t LoopSize = 0; in getPrefLoopAlignment() local
16694 LoopSize += TII->getInstSizeInBytes(J); in getPrefLoopAlignment()
16695 if (LoopSize > 32) in getPrefLoopAlignment()
16699 if (LoopSize > 16 && LoopSize <= 32) in getPrefLoopAlignment()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelLowering.cpp11512 unsigned LoopSize = SizeVal - BytesLeft; in EmitStructByval() local
11520 for (unsigned i = 0; i < LoopSize; i+=UnitSize) { in EmitStructByval()
11590 .addImm(LoopSize); in EmitStructByval()
11593 BuildMI(BB, dl, TII->get(ARM::tMOVi32imm), varEnd).addImm(LoopSize); in EmitStructByval()
11597 const Constant *C = ConstantInt::get(Int32Ty, LoopSize); in EmitStructByval()