[Bug c++/66584] gcc differs in static, branch-prediction cost from icc in switch.

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 18 15:46:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66584

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
If someone cares so much about the static branch predictor, they would be a
compiler developer. This is the first time I have seen a non-compiler developer
care about documenting gcc heuristics. Note there is no one paper. Also if
branches are 50/50, the decision can change based on adding another statement
and is hard to document otherwise.



More information about the Gcc-bugs mailing list