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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2024-04-18
     Ever confirmed|0                           |1
          Component|middle-end                  |tree-optimization
                 CC|                            |mjires at gcc dot gnu.org
            Version|unknown                     |14.0
             Status|UNCONFIRMED                 |NEW
           Keywords|                            |missed-optimization

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think if-to-switch might be confused by the PREDICT_EXPRs?  It has

;; Canonical GIMPLE case clusters: 42 322 1337

but does nothing here.  It might also not preserve profile.

I agree that attacking this through if-to-switch and switch expansion is
the way to go.

Reply via email to