[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
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...
More information about the llvm-dev