Atomics: switch direction of cmpxchg comparison
authorTim Northover <tnorthover@apple.com>
Fri, 13 Jun 2014 16:45:36 +0000 (16:45 +0000)
committerTim Northover <tnorthover@apple.com>
Fri, 13 Jun 2014 16:45:36 +0000 (16:45 +0000)
commit6b3ed2b8214778b8eedae81be5193d1b89c49a66
tree8d88e0ab73e93a7addffee96964206e7d322780e
parent61bc72e9ae25b6706d9a3a90a72e6d55a0d22b43
Atomics: switch direction of cmpxchg comparison

This has two benefits: it makes the result more suitable for direct
insertaion into the struct to emulate the new cmpxchg, and it means
the name we give the instruction matches its actual effect better.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210916 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AtomicExpandLoadLinkedPass.cpp
test/Transforms/AtomicExpandLoadLinked/ARM/atomic-expansion-v7.ll
test/Transforms/AtomicExpandLoadLinked/ARM/atomic-expansion-v8.ll