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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to work|                            |12.1.0
   Last reconfirmed|                            |2022-11-01
      Known to fail|                            |13.0
     Ever confirmed|0                           |1
            Summary|Wrong code at -Os on        |[13 Regression] Wrong code
                   |x86_64-linux-gnu            |at -Os on x86_64-linux-gnu
   Target Milestone|---                         |13.0
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
sccp is broken:

Estimating # of iterations of loop 1
Statement (exit)if (a_lsm.10_13 <= 0)
 is executed at most 0 (bounded by 0) + 1 times in loop 1.
Induction variable (int) 65517 + 10 * iteration does not wrap in statement _1 =
a_lsm.10_13 + 2;
 in loop 1.
Statement _1 = a_lsm.10_13 + 2;
 is executed at most 429490178 (bounded by 429490178) + 1 times in loop 1.
Induction variable (int) 65525 + 10 * iteration does not wrap in statement _4 =
(int) _3;
 in loop 1.
Statement _4 = (int) _3;
 is executed at most 1 (bounded by 1) + 1 times in loop 1.

final value replacement:
  a_lsm.10_14 = PHI <a_lsm.10_13(4)>
 with expr: 65515
 final stmt:
  a_lsm.10_14 = 65515;

Confirmed.

Reply via email to