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

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #2)
> FRE is no longer able to optimize _7 to 2 in GCC 13+:
>   c[0][b.1_1] = 2;
>   c[1][b.1_1] = 2;
>   c[2][b.1_1] = 2;
>   c[3][b.1_1] = 2;
>   c[4][b.1_1] = 2;
>   a = 5;
>   _5 = b.1_1 != 0;
>   _6 = (int) _5;
>   _7 = c[0][0];

That's PR108355.  The "magic" special-casing of single element arrays went
away (or rather now triggers more unreliably).

Reply via email to