https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44011
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |5.0 Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So the missed optimization with -UWARN_AND_OPTIMIZE is fixed in GCC 5. The warning is fully gone in GCC 8 for both cases since moving over to match and simplify.