https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106772
--- Comment #18 from Mkkt Bkkt <valera.mironow at gmail dot com> --- Thanks for provide source of your benchmarks! Can you also provide some example of usage atomic::notify where this optimization is needed? If it exists I think you right and it is necessary.