[PATCH] [X86] replace (atomic fetch_add of 0) by (mfence; mov)

Robin Morisset morisset at google.com
Fri Sep 19 16:53:20 PDT 2014


Doing this optimization so late was looking increasingly brittle as it must interact with AtomicExpandPass earlier at the IR level.
I reimplemented it at that level in D5422, and it turned out a lot cleaner.

http://reviews.llvm.org/D5091






More information about the llvm-commits mailing list