[llvm-dev] Heuristics of BranchProbabilityInfo

Venkata Keerthy S via llvm-dev llvm-dev at lists.llvm.org
Sat Oct 19 11:34:50 PDT 2019

Dear all,

There are a bunch of heuristics with different weights for *taken* and *not
taken* cases in BranchProbabilityInfo.cpp file. Is there any documentation
available, explaining how such weights are arrived at?

Also, is it of interest to improve the heuristics? For example, in the case
of loop branch heuristic, it may be helpful to consider trip count for
calculating the weights. Similarly, other heuristics can be improved.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20191020/e9a9d9f0/attachment.html>

More information about the llvm-dev mailing list