Home
last modified time | relevance | path

Searched refs:JumpTableSize (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Analysis/
H A DInlineCost.cpp291 virtual bool onJumpTable(unsigned JumpTableSize) { return true; } in onJumpTable() argument
299 virtual void onFinalizeSwitch(unsigned JumpTableSize, in onFinalizeSwitch() argument
655 void onFinalizeSwitch(unsigned JumpTableSize, in onFinalizeSwitch() argument
660 if (JumpTableSize) { in onFinalizeSwitch()
662 static_cast<int64_t>(JumpTableSize) * InlineConstants::InstrCost + in onFinalizeSwitch()
1129 void onFinalizeSwitch(unsigned JumpTableSize, in onFinalizeSwitch() argument
1132 if (JumpTableSize) { in onFinalizeSwitch()
1134 static_cast<int64_t>(JumpTableSize) * InlineConstants::InstrCost + in onFinalizeSwitch()
2318 unsigned JumpTableSize = 0; in visitSwitchInst() local
2321 TTI.getEstimatedNumberOfCaseClusters(SI, JumpTableSize, PSI, BFI); in visitSwitchInst()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DDFAJumpThreading.cpp845 unsigned JumpTableSize = 0; in isLegalAndProfitableToTransform() local
846 TTI->getEstimatedNumberOfCaseClusters(*Switch, JumpTableSize, nullptr, in isLegalAndProfitableToTransform()
848 if (JumpTableSize == 0) { in isLegalAndProfitableToTransform()
862 DuplicationCost = *Metrics.NumInsts.getValue() / JumpTableSize; in isLegalAndProfitableToTransform()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DBasicTTIImpl.h401 unsigned &JumpTableSize, in getEstimatedNumberOfCaseClusters() argument
415 JumpTableSize = 0; in getEstimatedNumberOfCaseClusters()
452 JumpTableSize = Range; in getEstimatedNumberOfCaseClusters()