Lines Matching refs:getNumCases
773 Cases.reserve(SI->getNumCases()); in GetValueEqualityComparisonCases()
3750 if (Weights.size() == 1 + SI->getNumCases()) { in SimplifySwitchOnSelect()
4551 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in TurnSwitchRangeIntoICmp()
4623 if (Weights.size() == 1 + SI->getNumCases()) { in TurnSwitchRangeIntoICmp()
4649 unsigned PreviousEdges = SI->getNumCases() - ContiguousCases->size(); in TurnSwitchRangeIntoICmp()
4704 SI->getNumCases() == (1ULL << NumUnknownBits)) { in eliminateDeadSwitchCases()
5381 if (SI->getNumCases() > TableSize || TableSize >= UINT64_MAX / 10) in ShouldBuildLookupTable()
5415 return SI->getNumCases() * 10 >= TableSize * 4; in ShouldBuildLookupTable()
5507 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in SwitchToLookupTable()
5525 if (SI->getNumCases() < 3) in SwitchToLookupTable()
5588 if (SI->getNumCases() < 4) // FIXME: Find best threshold value (benchmark). in SwitchToLookupTable()
5772 if (SI->getNumCases() < 4) in ReduceSwitchRange()