Home
last modified time | relevance | path

Searched refs:NumInsts (Results 1 – 19 of 19) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DCodeMetrics.cpp120 InstructionCost NumInstsBeforeThisBB = NumInsts; in analyzeBasicBlock()
180 NumInsts += TTI.getUserCost(&I, TargetTransformInfo::TCK_CodeSize); in analyzeBasicBlock()
200 InstructionCost NumInstsThisBB = NumInsts - NumInstsBeforeThisBB; in analyzeBasicBlock()
H A DModuleSummaryAnalysis.cpp259 unsigned NumInsts = 0; in computeFunctionSummary() local
298 ++NumInsts; in computeFunctionSummary()
508 Flags, NumInsts, FunFlags, /*EntryCount=*/0, std::move(Refs), in computeFunctionSummary()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DCodeMetrics.h52 InstructionCost NumInsts = 0; member
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DADCE.cpp221 size_t NumInsts = 0; in initialize() local
226 NumInsts += BB.size(); in initialize()
234 InstInfo.reserve(NumInsts); in initialize()
H A DLoopDataPrefetch.cpp305 if (!Metrics.NumInsts.isValid()) in runOnLoop()
308 unsigned LoopSize = *Metrics.NumInsts.getValue(); in runOnLoop()
H A DDFAJumpThreading.cpp832 if (!Metrics.NumInsts.isValid()) { in isLegalAndProfitableToTransform()
854 DuplicationCost = *Metrics.NumInsts.getValue() / CondBranches; in isLegalAndProfitableToTransform()
862 DuplicationCost = *Metrics.NumInsts.getValue() / JumpTableSize; in isLegalAndProfitableToTransform()
H A DLoopUnrollPass.cpp677 InstructionCost LoopSize = Metrics.NumInsts; in ApproximateLoopSize()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DFunctionSpecialization.cpp404 << F->getName() << " is " << Metrics.NumInsts in analyzeFunction()
553 if (Metrics.notDuplicatable || !Metrics.NumInsts.isValid() || in getSpecializationCost()
555 *Metrics.NumInsts.getValue() < SmallFunctionThreshold)) { in getSpecializationCost()
564 return Metrics.NumInsts * InlineConstants::InstrCost * Penalty; in getSpecializationCost()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLoopRotationUtils.cpp313 if (!Metrics.NumInsts.isValid()) { in rotateLoop()
319 if (*Metrics.NumInsts.getValue() > MaxHeaderSize) { in rotateLoop()
321 << Metrics.NumInsts in rotateLoop()
H A DLoopUnrollAndJam.cpp794 size_t NumInsts = CurrentLoadsAndStores.size(); in checkDependencies() local
795 for (size_t I = 0; I < NumInsts; ++I) { in checkDependencies()
796 for (size_t J = I; J < NumInsts; ++J) { in checkDependencies()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DReachingDefAnalysis.cpp156 int NumInsts = std::distance(NonDbgInsts.begin(), NonDbgInsts.end()); in reprocessBasicBlock() local
187 if (MBBOutRegsInfos[MBBNumber][Unit] < Def - NumInsts) in reprocessBasicBlock()
188 MBBOutRegsInfos[MBBNumber][Unit] = Def - NumInsts; in reprocessBasicBlock()
H A DMachineBlockPlacement.cpp3504 int NumInsts = std::distance(NonDbgInsts.begin(), NonDbgInsts.end()); in applyExtTsp() local
3505 BlockSizes[BlockIndex[&MBB]] = 4 * NumInsts; in applyExtTsp()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DModuleSummaryIndex.h710 FunctionSummary(GVFlags Flags, unsigned NumInsts, FFlags FunFlags,
720 InstCount(NumInsts), FunFlags(FunFlags), EntryCount(EntryCount),
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMBaseInstrInfo.h280 unsigned NumInsts) const override;
H A DARMBaseInstrInfo.cpp2196 unsigned NumInsts) const { in extraSizeToPredicateInstructions()
2205 return divideCeil(NumInsts, MaxInsts) * 2; in extraSizeToPredicateInstructions()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DTargetInstrInfo.h843 unsigned NumInsts) const { in extraSizeToPredicateInstructions() argument
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DSIInstrInfo.cpp2735 int NumInsts = AMDGPU::getRegBitWidth(RC->getID()) / 32; in canInsertSelect() local
2736 CondCycles = TrueCycles = FalseCycles = NumInsts; // ??? in canInsertSelect()
2739 return RI.hasVGPRs(RC) && NumInsts <= 6; in canInsertSelect()
2750 int NumInsts = AMDGPU::getRegBitWidth(RC->getID()) / 32; in canInsertSelect() local
2753 if (NumInsts % 2 == 0) in canInsertSelect()
2754 NumInsts /= 2; in canInsertSelect()
2756 CondCycles = TrueCycles = FalseCycles = NumInsts; // ??? in canInsertSelect()
H A DSIISelLowering.cpp10607 unsigned NumInsts = NumElem /* Number of compares */ + in shouldExpandVectorDynExt() local
10613 return NumInsts <= 16; in shouldExpandVectorDynExt()
10617 return NumInsts <= 15; in shouldExpandVectorDynExt()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCTargetTransformInfo.cpp736 if (Metrics.NumInsts <= (6 * SchedModel.getIssueWidth())) in isHardwareLoopProfitable()