https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119913
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Created attachment 61181 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61181&action=edit Better testcase As far as I can tell this is a RTL issue. The gimple IR looks the same independent of the `#if` there.