summaryrefslogtreecommitdiff
path: root/lib/Bitcode
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-06-10 10:49:07 +0000
committerTim Northover <tnorthover@apple.com>2014-06-10 10:49:07 +0000
commit984ee6544580453320597d496f2a67adec8d1e93 (patch)
treef453f399972a362f1a91ffecd2357eff2cbcd39f /lib/Bitcode
parent46b3076cd0b1e57e16cfe4ecaa517eb78863a92a (diff)
downloadllvm-984ee6544580453320597d496f2a67adec8d1e93.tar.gz
llvm-984ee6544580453320597d496f2a67adec8d1e93.tar.bz2
llvm-984ee6544580453320597d496f2a67adec8d1e93.tar.xz
X86: elide comparisons after cmpxchg instructions.
The C++ and C semantics of the compare_and_swap operations actually require us to return a boolean "success" value. In LLVM terms this means a second comparison of the output of "cmpxchg" against the input desired value. However, x86's "cmpxchg" instruction sets all flags for the comparison formed, so we can skip any secondary comparison. (N.b. this isn't true for cmpxchg8b/16b, which only set ZF). rdar://problem/13201607 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210523 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
0 files changed, 0 insertions, 0 deletions