[llvm-dev] [atomics][AArch64] Possible bug in cmpxchg lowering

Tim Northover via llvm-dev llvm-dev at lists.llvm.org
Tue May 30 15:49:37 PDT 2017


On 30 May 2017 at 15:40, Tim Northover <t.p.northover at gmail.com> wrote:
> So changing LLVM to do the same as GCC does seem like a decent idea to
> me. But remember to update the LangRef to make it clear.

Oh, and if you do this you may want to check what Clang does when the
order isn't a compile-time constant. Schematically it does a couple of
switches and a nested set of cmpxchgs with all possible ordering
constraints.

Those switches may or may not include the cases you're interested in.

Cheers.

Tim.


More information about the llvm-dev mailing list