Home | History | Annotate | Download | only in Analysis

Lines Matching defs:Weights

37 // Weights are for internal use only. They are used by heuristics to help to
40 // Using "Loop Branch Heuristics" we predict weights of edges for the
122 /// \brief Calculate edge weights for successors lead to unreachable.
187 // Ensure there are weights for all of the successors. Note that the first
192 // Build up the final weights that will be used in a temporary buffer, but
196 SmallVector<uint32_t, 2> Weights;
197 Weights.reserve(TI->getNumSuccessors());
202 Weights.push_back(
205 assert(Weights.size() == TI->getNumSuccessors() && "Checked above");
207 setEdgeWeight(BB, i, Weights[i]);
212 /// \brief Calculate edge weights for edges leading to cold blocks.
218 /// Return true if we could compute the weights for cold edges.
273 // Calculate Edge Weights using "Pointer Heuristics". Predict a comparsion
306 // Calculate Edge Weights using "Loop Branch Heuristics". Predict backedges
593 Weights.find(std::make_pair(Src, IndexInSuccessors));
595 if (I != Weights.end())
607 /// of all raw edge weights from Src to Dst.
614 MapI = Weights.find(std::make_pair(Src, I.getSuccessorIndex()));
615 if (MapI != Weights.end())
626 Weights[std::make_pair(Src, IndexInSuccessors)] = Weight;