https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120426
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2025-05-25
Status|UNCONFIRMED |NEW
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=87901
Component|target |tree-optimization
Ever confirmed|0 |1
Severity|normal |enhancement
CC| |pinskia at gcc dot gnu.org
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I am not 100% sure this which is better.
The gimple level looks like:
*lock_2(D) = {};
lock_2(D)->mutexD.2972.__dataD.2967.__kindD.2962 = 1;
Which means it is related to PR 87901 (which was just fixed for GCC 16). though
in this case the non-zero store is in the middle rather than at the ends. Right
now we only trim the stores at either ends rather than split it into 2 stores.