Home
last modified time | relevance | path

Searched refs:UnreachableEdges (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp128 SmallVector<unsigned, 4> UnreachableEdges; in calcUnreachableHeuristics() local
133 UnreachableEdges.push_back(I.getSuccessorIndex()); in calcUnreachableHeuristics()
140 if (UnreachableEdges.size() == TI->getNumSuccessors()) in calcUnreachableHeuristics()
145 if (TI->getNumSuccessors() == 1 || UnreachableEdges.empty()) in calcUnreachableHeuristics()
159 BranchProbability Prob(1, UnreachableEdges.size()); in calcUnreachableHeuristics()
160 for (unsigned SuccIdx : UnreachableEdges) in calcUnreachableHeuristics()
167 UnreachableEdges.size()); in calcUnreachableHeuristics()
172 for (unsigned SuccIdx : UnreachableEdges) in calcUnreachableHeuristics()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DBranchProbabilityInfo.cpp211 SmallVector<unsigned, 4> UnreachableEdges; in calcUnreachableHeuristics() local
216 UnreachableEdges.push_back(I.getSuccessorIndex()); in calcUnreachableHeuristics()
221 if (UnreachableEdges.empty()) in calcUnreachableHeuristics()
225 BranchProbability Prob(1, UnreachableEdges.size()); in calcUnreachableHeuristics()
226 for (unsigned SuccIdx : UnreachableEdges) in calcUnreachableHeuristics()
233 (BranchProbability::getOne() - UR_TAKEN_PROB * UnreachableEdges.size()) / in calcUnreachableHeuristics()
236 for (unsigned SuccIdx : UnreachableEdges) in calcUnreachableHeuristics()