Home | History | Annotate | Download | only in Scalar

Lines Matching defs:Weights

17 // - prof: Represents branch weights. This annotation is added to branches
18 // to indicate the weights of each edge coming out of the branch.
65 "sample block/edge weights through the CFG."));
176 /// \brief Map basic blocks to their computed weights.
179 /// of all the instruction weights in that block.
182 /// \brief Map edges to their computed weights.
184 /// Edge weights are computed by propagating basic block weights in
194 /// \brief Equivalence classes for block weights.
516 // When dealing with instruction weights, we use the value
585 /// \brief Compute and store the weights of every basic block.
588 /// the weights of every basic block in the CFG.
593 DEBUG(dbgs() << "Block weights\n");
657 /// the weights of all the blocks in the same equivalence class to the same
708 // Assign weights to equivalence classes.
745 /// \brief Propagate weights through incoming/outgoing edges.
755 /// \returns True if new weights were assigned to edges or blocks.
791 // - All the edge weights are known (i.e., NumUnknownEdges == 0).
800 // edge weights. If the edges weight more than BB, then the
816 // of all edge weights.
820 DEBUG(dbgs() << "All edge weights for " << BB->getName()
886 /// \brief Propagate weights into edges
920 // edge weights computed during propagation.
921 DEBUG(dbgs() << "\nPropagation complete. Setting branch weights\n");
931 DEBUG(dbgs() << "\nGetting weights for branch at line "
933 SmallVector<unsigned, 4> Weights;
940 Weights.push_back(Weight);
945 // Only set weights if there is at least one non-zero weight.
946 // In any other case, let the analyzer set weights.
948 DEBUG(dbgs() << "SUCCESS. Found non-zero weights.\n");
950 MDB.createBranchWeights(Weights));
952 DEBUG(dbgs() << "SKIPPED. All branch weights are zero.\n");
989 /// Branch weights are computed out of instruction samples using a
992 /// 1- Assignment of block weights. All the basic blocks in the function
997 /// blocks, we can fill in the gaps by setting the weights of all the
1003 /// 3- Propagation of block weights into edges. This uses a simple
1030 /// Once all the branch weights are computed, we emit the MD_prof
1053 // Compute basic block weights.
1060 // Propagate weights to all edges.