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

References

lib/Analysis/BranchProbabilityInfo.cpp
  256   assert(TI->getNumSuccessors() > 1 && "expected more than one successor!");
  257   if (!(isa<BranchInst>(TI) || isa<SwitchInst>(TI) || isa<IndirectBrInst>(TI)))
  257   if (!(isa<BranchInst>(TI) || isa<SwitchInst>(TI) || isa<IndirectBrInst>(TI)))
  257   if (!(isa<BranchInst>(TI) || isa<SwitchInst>(TI) || isa<IndirectBrInst>(TI)))
  260   MDNode *WeightsNode = TI->getMetadata(LLVMContext::MD_prof);
  265   assert(TI->getNumSuccessors() < UINT32_MAX && "Too many successors");
  269   if (WeightsNode->getNumOperands() != TI->getNumSuccessors() + 1)
  279   Weights.reserve(TI->getNumSuccessors());
  289     if (PostDominatedByUnreachable.count(TI->getSuccessor(i - 1)))
  294   assert(Weights.size() == TI->getNumSuccessors() && "Checked above");
  303     for (unsigned i = 0, e = TI->getNumSuccessors(); i != e; ++i) {
  312     for (unsigned i = 0, e = TI->getNumSuccessors(); i != e; ++i)
  314     WeightSum = TI->getNumSuccessors();
  319   for (unsigned i = 0, e = TI->getNumSuccessors(); i != e; ++i)
  342   for (unsigned i = 0, e = TI->getNumSuccessors(); i != e; ++i)