| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | CodeMetrics.cpp | 120 InstructionCost NumInstsBeforeThisBB = NumInsts; in analyzeBasicBlock() 180 NumInsts += TTI.getUserCost(&I, TargetTransformInfo::TCK_CodeSize); in analyzeBasicBlock() 200 InstructionCost NumInstsThisBB = NumInsts - NumInstsBeforeThisBB; in analyzeBasicBlock()
|
| H A D | ModuleSummaryAnalysis.cpp | 259 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 D | CodeMetrics.h | 52 InstructionCost NumInsts = 0; member
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | ADCE.cpp | 221 size_t NumInsts = 0; in initialize() local 226 NumInsts += BB.size(); in initialize() 234 InstInfo.reserve(NumInsts); in initialize()
|
| H A D | LoopDataPrefetch.cpp | 305 if (!Metrics.NumInsts.isValid()) in runOnLoop() 308 unsigned LoopSize = *Metrics.NumInsts.getValue(); in runOnLoop()
|
| H A D | DFAJumpThreading.cpp | 832 if (!Metrics.NumInsts.isValid()) { in isLegalAndProfitableToTransform() 854 DuplicationCost = *Metrics.NumInsts.getValue() / CondBranches; in isLegalAndProfitableToTransform() 862 DuplicationCost = *Metrics.NumInsts.getValue() / JumpTableSize; in isLegalAndProfitableToTransform()
|
| H A D | LoopUnrollPass.cpp | 677 InstructionCost LoopSize = Metrics.NumInsts; in ApproximateLoopSize()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/IPO/ |
| H A D | FunctionSpecialization.cpp | 404 << 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 D | LoopRotationUtils.cpp | 313 if (!Metrics.NumInsts.isValid()) { in rotateLoop() 319 if (*Metrics.NumInsts.getValue() > MaxHeaderSize) { in rotateLoop() 321 << Metrics.NumInsts in rotateLoop()
|
| H A D | LoopUnrollAndJam.cpp | 794 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 D | ReachingDefAnalysis.cpp | 156 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 D | MachineBlockPlacement.cpp | 3504 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 D | ModuleSummaryIndex.h | 710 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 D | ARMBaseInstrInfo.h | 280 unsigned NumInsts) const override;
|
| H A D | ARMBaseInstrInfo.cpp | 2196 unsigned NumInsts) const { in extraSizeToPredicateInstructions() 2205 return divideCeil(NumInsts, MaxInsts) * 2; in extraSizeToPredicateInstructions()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | TargetInstrInfo.h | 843 unsigned NumInsts) const { in extraSizeToPredicateInstructions() argument
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | SIInstrInfo.cpp | 2735 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 D | SIISelLowering.cpp | 10607 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 D | PPCTargetTransformInfo.cpp | 736 if (Metrics.NumInsts <= (6 * SchedModel.getIssueWidth())) in isHardwareLoopProfitable()
|