by acallan · 11y ago · 0 comments
The example that the author gives does not apply to x86.
[1]There are memory types that do not have strong memory ordering, and if you use non-temporal instructions for streaming SIMD, SFENCE/LFENCE/MFENCE are useful.
http://bartoszmilewski.com/2008/11/05/who-ordered-memory-fen...
http://preshing.com/20120515/memory-reordering-caught-in-the...
This whole area is very touchy and easy to get wrong. Further reading:
https://software.intel.com/en-us/articles/tsx-anti-patterns-...
Do you have a reference for the strong memory ordering on x86? I'd like to read more about it.