[LLVMdev] llvm.atomic.barrier implementation

Duncan Sands baldrick at free.fr
Sat Feb 16 00:16:44 PST 2008


> GCC 4.2 compiles this to a no-op on x86:
> 
> void foo() {
>    __sync_synchronize();
> }
> 
> Are you seeing different behavior?  What am I missing here?

Maybe the processor does a memory barrier when it executes
a call instruction.

Ciao,

Duncan.



More information about the llvm-dev mailing list