https://gcc.gnu.org/bugzilla/show_bug.cgi?id=30101
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Target Milestone|--- |9.0 Status|NEW |RESOLVED --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- ccp1 in GCC 6+ is able to remove the two if statements; maybe done by r6-147 . fre1 in GCC 9+ is able to remove the two if stamtenets too; I didn't look into which revision though. So closing as fixed.