[Bug middle-end/50385] missed-optimization: jump to __builtin_unreachable() not removed
pinskia at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Nov 11 01:39:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50385
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Status|UNCONFIRMED |NEW
Last reconfirmed| |2011-11-11
Component|tree-optimization |middle-end
Ever Confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-11-11 00:39:55 UTC ---
Confirmed with a much simpler testcase:
int
f (int i)
{
if (i <= 1)
return 1;
__builtin_unreachable();
}
--- CUT ---
I found this while adding a basic block reordering pass to the tree level and I
got a failure with builtin-unreachable-2.c .
More information about the Gcc-bugs
mailing list