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

            Bug ID: 129118
           Summary: `(a == 0) BIT_OPT (a >= zero_one)` can be simplified
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Keywords: easyhack, missed-optimization
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Created attachment 66317
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66317&action=edit
testcase

See the attached testcase.

f_or can be simplified to just true.
f_and can be simplified to the same thing as f_and_tgt.
f_xor can be simplified to the same thing as f_xor_tgt.


This showed up while looking into PR 129117 and will solve the compile time
issue there.

Reply via email to