Home
last modified time | relevance | path

Searched refs:CaseRange (Results 1 – 2 of 2) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLowerSwitch.cpp72 struct CaseRange { struct
77 CaseRange(ConstantInt *low, ConstantInt *high, BasicBlock *bb) in CaseRange() function
81 using CaseVector = std::vector<CaseRange>;
82 using CaseItr = std::vector<CaseRange>::iterator;
87 bool operator()(const CaseRange &C1, const CaseRange &C2) { in operator ()()
156 BasicBlock *NewLeafBlock(CaseRange &Leaf, Value *Val, ConstantInt *LowerBound, in NewLeafBlock()
251 std::vector<CaseRange> LHS(Begin, Begin + Mid); in SwitchConvert()
253 std::vector<CaseRange> RHS(Begin + Mid, End); in SwitchConvert()
256 CaseRange &Pivot = *(Begin + Mid); in SwitchConvert()
316 Cases.push_back(CaseRange(Case.getCaseValue(), Case.getCaseValue(), in Clusterify()
[all …]
H A DSimplifyCFG.cpp6477 static bool isSwitchDense(uint64_t NumCases, uint64_t CaseRange) { in isSwitchDense() argument
6483 if (CaseRange >= UINT64_MAX / 100) in isSwitchDense()
6486 return NumCases * 100 >= CaseRange * MinDensity; in isSwitchDense()