https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119458
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|Optimisation miss: |inc/dec could be used for
|atomic_ref increment |generic tuning for atomics
Severity|normal |enhancement
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Tymi from comment #3)
> ..though -fauto-inc-dec should include it as well :/
That option is for pre/post increment/decrement of memory address when doing
load/stores.
And is even documented that way:
https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Optimize-Options.html#index-fauto-inc-dec
:
`Combine increments or decrements of addresses with memory accesses.`.
That is it has nothing to do with inc/dec and the add/sub instructions.
On the original issue at hand: the question now is the generic tuning correct
for both modern Intel and AMD processors. I am not sure.