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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
It certainly shouldn't hurt.  I think the middle-end predicts ptr == NULL
comparisons as unlikely, but __builtin_expect is stronger probability than that
and makes it clearer that it is extremely unlikely.

Reply via email to