[PATCH] [X86] Allow atomic operations using immediates to avoid using a register

Robin Morisset morisset at google.com
Thu Aug 7 15:02:41 PDT 2014


Actually, on X86 the xchg instruction is a bit special in that it automatically behaves as if it had a LOCK prefix, even if it is not explicit (source: Intel manual, 2B 4-71)
So I don't think it is a bug that it is not added.
Do you think I should add a comment somewhere to that effect? And if so where?

Thanks again for your reviews!

http://reviews.llvm.org/D4796






More information about the llvm-commits mailing list