/external/swiftshader/third_party/LLVM/lib/Analysis/ |
D | InlineCost.cpp | 59 unsigned NumInstsBeforeThisBB = NumInsts; in analyzeBasicBlock() 88 NumInsts += CS.arg_size(); in analyzeBasicBlock() 127 ++NumInsts; in analyzeBasicBlock() 142 NumBBInsts[BB] = NumInsts - NumInstsBeforeThisBB; in analyzeBasicBlock() 250 --Metrics.NumInsts; in analyzeFunction() 418 InlineCost += CalleeFI->Metrics.NumInsts*InlineConstants::InstrCost; in getInlineSize() 560 Cost += CalleeFI->Metrics.NumInsts * InlineConstants::InstrCost; in getSpecializationCost() 590 if (CalleeFI.Metrics.NumVectorInsts > CalleeFI.Metrics.NumInsts/2) in getInlineFudgeFactor() 592 else if (CalleeFI.Metrics.NumVectorInsts > CalleeFI.Metrics.NumInsts/10) in getInlineFudgeFactor() 604 if (CallerMetrics.NumBlocks < 10 && CallerMetrics.NumInsts < 1000) { in growCachedCostInfo() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Analysis/ |
D | CodeMetrics.h | 45 unsigned NumInsts, NumBlocks; member 68 NumInsts(0), NumBlocks(0), NumCalls(0), in CodeMetrics()
|
/external/llvm/lib/Analysis/ |
D | CodeMetrics.cpp | 109 unsigned NumInstsBeforeThisBB = NumInsts; in analyzeBasicBlock() 165 NumInsts += TTI.getUserCost(&I); in analyzeBasicBlock() 185 NumBBInsts[BB] = NumInsts - NumInstsBeforeThisBB; in analyzeBasicBlock()
|
D | ModuleSummaryAnalysis.cpp | 72 unsigned NumInsts = 0; in computeFunctionSummary() local 82 ++NumInsts; in computeFunctionSummary() 100 llvm::make_unique<FunctionSummary>(Flags, NumInsts); in computeFunctionSummary()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | CodeMetrics.cpp | 122 unsigned NumInstsBeforeThisBB = NumInsts; in analyzeBasicBlock() 178 NumInsts += TTI.getUserCost(&I); in analyzeBasicBlock() 198 NumBBInsts[BB] = NumInsts - NumInstsBeforeThisBB; in analyzeBasicBlock()
|
D | ModuleSummaryAnalysis.cpp | 231 unsigned NumInsts = 0; in computeFunctionSummary() local 253 ++NumInsts; in computeFunctionSummary() 368 Flags, NumInsts, FunFlags, RefEdges.takeVector(), in computeFunctionSummary()
|
/external/llvm/include/llvm/Analysis/ |
D | CodeMetrics.h | 63 unsigned NumInsts = false; member
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/ |
D | CodeMetrics.h | 63 unsigned NumInsts = false; member
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | ADCE.cpp | 219 size_t NumInsts = 0; in initialize() local 224 NumInsts += BB.size(); in initialize() 232 InstInfo.reserve(NumInsts); in initialize()
|
D | LoopDataPrefetch.cpp | 236 unsigned LoopSize = Metrics.NumInsts; in runOnLoop()
|
D | LoopUnrollPass.cpp | 631 unsigned LoopSize = Metrics.NumInsts; in ApproximateLoopSize()
|
D | LoopUnswitch.cpp | 295 Props.SizeEstimation = Metrics.NumInsts; in countLoop()
|
/external/llvm/include/llvm/IR/ |
D | ModuleSummaryIndex.h | 246 FunctionSummary(GVFlags Flags, unsigned NumInsts) in FunctionSummary() argument 247 : GlobalValueSummary(FunctionKind, Flags), InstCount(NumInsts) {} in FunctionSummary()
|
/external/swiftshader/third_party/LLVM/lib/Target/ARM/ |
D | Thumb2InstrInfo.cpp | 583 unsigned NumInsts = 0; in scheduleTwoAddrSource() local 594 if (++NumInsts == 4) in scheduleTwoAddrSource() 599 if (NumInsts) { in scheduleTwoAddrSource()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | LoopUnrollPass.cpp | 119 unsigned LoopSize = Metrics.NumInsts; in ApproximateLoopSize()
|
D | LoopRotation.cpp | 180 if (Metrics.NumInsts > MAX_HEADER_SIZE) in rotateLoop()
|
D | LoopUnswitch.cpp | 450 if (Metrics.NumInsts > Threshold || in UnswitchIfProfitable()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopDataPrefetch.cpp | 202 unsigned LoopSize = Metrics.NumInsts; in runOnLoop()
|
D | LoopRotation.cpp | 235 if (Metrics.NumInsts > MaxHeaderSize) in rotateLoop()
|
D | LoopUnrollPass.cpp | 543 unsigned LoopSize = Metrics.NumInsts; in ApproximateLoopSize()
|
D | LoopUnswitch.cpp | 292 Props.SizeEstimation = Metrics.NumInsts; in countLoop()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/ |
D | ModuleSummaryIndex.h | 506 FunctionSummary(GVFlags Flags, unsigned NumInsts, FFlags FunFlags, 514 InstCount(NumInsts), FunFlags(FunFlags),
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/ |
D | LoopRotationUtils.cpp | 250 if (Metrics.NumInsts > MaxHeaderSize) in rotateLoop()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/PowerPC/ |
D | PPCCTRLoops.cpp | 503 if (Metrics.NumInsts <= (6 * SchedModel.getIssueWidth())) in convertToCTRLoop()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | SIInstrInfo.cpp | 1796 int NumInsts = AMDGPU::getRegBitWidth(RC->getID()) / 32; in canInsertSelect() local 1797 CondCycles = TrueCycles = FalseCycles = NumInsts; // ??? in canInsertSelect() 1800 return !RI.isSGPRClass(RC) && NumInsts <= 6; in canInsertSelect() 1810 int NumInsts = AMDGPU::getRegBitWidth(RC->getID()) / 32; in canInsertSelect() local 1813 if (NumInsts % 2 == 0) in canInsertSelect() 1814 NumInsts /= 2; in canInsertSelect() 1816 CondCycles = TrueCycles = FalseCycles = NumInsts; // ??? in canInsertSelect()
|