Why don't compilers merge redundant std::atomic writes? – stackoverflow.com

I'm wondering why no compilers are prepared to merge consecutive writes of the same value to a single atomic variable, e.g.: #include <atomic> std::atomic<int> y(0); void f() { auto ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Why don't compilers merge redundant std::atomic writes? – stackoverflow.com"