https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124453

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
           Keywords|                            |missed-optimization
             Blocks|                            |19466
          Component|target                      |middle-end
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2026-03-11

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
#ifdef dd
    auto t = val.b;
    if(t == 0)
#else
    if (val.b == 0)
#endif

The problem is too early `optimizing` of val.b == 0.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19466
[Bug 19466] [meta-bug] bit-fields are non optimal

Reply via email to