Lines Matching refs:getNumCases
676 Cases.reserve(SI->getNumCases()); in GetValueEqualityComparisonCases()
804 bool HasWeight = MD && (MD->getNumOperands() == 2 + SI->getNumCases()); in SimplifyEqualityComparisonWithOnlyPredecessor()
3090 if (Weights.size() == 1 + SI->getNumCases()) { in SimplifySwitchOnSelect()
3227 if (Weights.size() == 1 + SI->getNumCases()) { in TryToSimplifyUncondBranchWithICmpInIt()
3876 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in TurnSwitchRangeIntoICmp()
3948 if (Weights.size() == 1 + SI->getNumCases()) { in TurnSwitchRangeIntoICmp()
3977 unsigned PreviousEdges = SI->getNumCases() - ContiguousCases->size(); in TurnSwitchRangeIntoICmp()
4027 SI->getNumCases() == (1ULL << NumUnknownBits)) { in EliminateDeadSwitchCases()
4043 HasWeight = (Weights.size() == 1 + SI->getNumCases()); in EliminateDeadSwitchCases()
4686 if (SI->getNumCases() > TableSize || TableSize >= UINT64_MAX / 10) in ShouldBuildLookupTable()
4720 return SI->getNumCases() * 10 >= TableSize * 4; in ShouldBuildLookupTable()
4813 assert(SI->getNumCases() > 1 && "Degenerate switch?"); in SwitchToLookupTable()
4829 if (SI->getNumCases() < 3) in SwitchToLookupTable()
4889 if (SI->getNumCases() < 4) // FIXME: Find best threshold value (benchmark). in SwitchToLookupTable()