<div dir="ltr">That actually generates a locked memory or with zero or an mfence instruction.  This intrinsic... actually does nothing, except to prevent the compiler from reordering loads and stores.  If you want to do something with the CPU, you need to use a different intrinsic.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 16, 2013 at 12:44 PM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
  Can't use something like __sync_synchronize or is the behavior different?<br>
<br>
<a href="http://llvm-reviews.chandlerc.com/D1954" target="_blank">http://llvm-reviews.chandlerc.com/D1954</a><br>
</blockquote></div><br></div>