by orlp · 1y ago · 0 comments
I disagree with this statement (taken at face value, I don't necessarily agree with the wording in the OP either). Non-temporal instructions are unordered with respect to normal memory operations, so without a _mm_sfence() after doing your non-temporal writes you're going to get nasty hardware UB.
In any case, if so they are potentially _less_ correct; they never help you.
Intel's docs are unfortunately spartan, but the guarantees around program order is a hint that this is what it does.