diff options
author | Tim Northover <tnorthover@apple.com> | 2014-06-13 17:29:39 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2014-06-13 17:29:39 +0000 |
commit | 51472bc600fc5622d50c6d9cefd88528b8c50f17 (patch) | |
tree | 8430945a3c3c6e3a1c445b8ae5ced229548f5b57 /clang/lib/CodeGen/CGDecl.cpp | |
parent | fd8c24ede8d0996ac9d09dc53a393c04de3d61f0 (diff) | |
download | bcm5719-llvm-51472bc600fc5622d50c6d9cefd88528b8c50f17.tar.gz bcm5719-llvm-51472bc600fc5622d50c6d9cefd88528b8c50f17.zip |
X86: lower ATOMIC_CMP_SWAP_WITH_SUCCESS directly
Lowering this new node allows us to fold the almost universal
comparison for success before it's even formed. Instead we can create
a copy from EFLAGS and an X86ISD::SETCC operation since all "cmpxchg"
instructions set the zero-flag to the correct value.
rdar://problem/13201607
llvm-svn: 210923
Diffstat (limited to 'clang/lib/CodeGen/CGDecl.cpp')
0 files changed, 0 insertions, 0 deletions