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

            Bug ID: 127144
           Summary: phi_arg_from_cmp_p and cond_on_phi_p   should support
                    __builtin_expect
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Keywords: 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 65455
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65455&action=edit
testcase

Since now we are doing this phiopt in early times; __builtin_expect will show
up so we should handle it in phi_arg_from_cmp_p and cond_on_phi_p.

cond_on_phi_p part is an expansion of PR 127143; instead of just one cast, it
is two casts and a call to __builtin_expect.

Reply via email to