reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/CodeGen/SwitchLoweringUtils.cpp
  461   for (const CaseCluster &CC : Clusters)
  465   llvm::sort(Clusters, [](const CaseCluster &a, const CaseCluster &b) {
  470   const unsigned N = Clusters.size();
  473     CaseCluster &CC = Clusters[SrcIndex];
  477     if (DstIndex != 0 && Clusters[DstIndex - 1].MBB == Succ &&
  478         (CaseVal->getValue() - Clusters[DstIndex - 1].High->getValue()) == 1) {
  481       Clusters[DstIndex - 1].High = CaseVal;
  482       Clusters[DstIndex - 1].Prob += CC.Prob;
  484       std::memmove(&Clusters[DstIndex++], &Clusters[SrcIndex],
  484       std::memmove(&Clusters[DstIndex++], &Clusters[SrcIndex],
  485                    sizeof(Clusters[SrcIndex]));
  488   Clusters.resize(DstIndex);