<div dir="ltr">James is really clear on the point of "AS-IF" - The compiler can do anything as long as the user can't observe a difference in the behavior. The standard can say add a barrier, but if the compiler can make the code visibly act the same with our without a barrier that's all that matters.<br><br><br></div>