https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102580
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- For an example GCC does optimize the following too: int f(int x) { if (x < 0) __builtin_unreachable(); return x/3; }
pinskia at gcc dot gnu.org via Gcc-bugs Sun, 17 Oct 2021 14:14:19 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102580
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- For an example GCC does optimize the following too: int f(int x) { if (x < 0) __builtin_unreachable(); return x/3; }