[Bug tree-optimization/126760] [16/17 Regression] Wrong code at -O2 on x86_64-pc-linux-gnu

"pinskia at gcc dot gnu.org via Gcc-bugs" <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126760

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2026-08-09

--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.  Maybe ifcvt related to switch expansions because turning off the
vectorizer fixes the issue.

Also:
  switch (f_14) <default: <L4> [66.67%], case 1: <L4> [66.67%], case 3: <L14>
[33.33%]>

Should have been `case 1` and `default` merged such that the switch will then
have been converted into just if (f_14 == 3) goto L14; else goto L4.  This
happens after pre.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.