Home | History | Annotate | Download | only in Instrumentation

Lines Matching defs:Weights

31 // annotates the branch weights. It also reads the indirect call value
862 // Set the branch weights based on the count values.
871 // Annotate the irreducible loop header weights.
1163 LLVM_DEBUG(dbgs() << "\nSetting branch weights.\n");
1204 LLVM_DEBUG(dbgs() << "\nAnnotating irreducible loop header weights.\n");
1586 SmallVector<unsigned, 4> Weights;
1588 Weights.push_back(scaleBranchCount(ECI, Scale));
1591 : Weights) {
1594 TI->setMetadata(LLVMContext::MD_prof, MDB.createBranchWeights(Weights));
1601 std::accumulate(Weights.begin(), Weights.end(), (uint64_t)0,
1607 BranchProbability BP(scaleBranchCount(Weights[0], Scale),