https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112440
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |alias
Last reconfirmed|2023-11-08 00:00:00 |2025-9-1
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
```
result._M_string_length = summ_2(D);
_44 = prephitmp_101 + summ_2(D);
MEM[(char_type &)_44] = 0;
_5 = result._M_string_length;
if (summ_2(D) < _5)
```
The other missing optimization has to do with aliasing.