[SystemZ] Custom-expand ATOMIC_CMP_AND_SWAP_WITH_SUCCESS
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Thu, 28 Sep 2017 16:22:54 +0000 (16:22 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Thu, 28 Sep 2017 16:22:54 +0000 (16:22 +0000)
commit0f1de04979af245e93598ab197251924b300485f
tree93e70dfb01c78868c73e867f32631df7c3735c8c
parentb688d131f0a3f062d3d4c7c936a11c353547d866
[SystemZ] Custom-expand ATOMIC_CMP_AND_SWAP_WITH_SUCCESS

The SystemZ compare-and-swap instructions already provide the "success"
indication via a condition-code value, so the default expansion of those
operations generates an unnecessary extra comparsion.

llvm-svn: 314428
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
llvm/lib/Target/SystemZ/SystemZISelLowering.h
llvm/lib/Target/SystemZ/SystemZInstrInfo.td
llvm/lib/Target/SystemZ/SystemZOperators.td
llvm/test/CodeGen/SystemZ/cmpxchg-01.ll
llvm/test/CodeGen/SystemZ/cmpxchg-02.ll
llvm/test/CodeGen/SystemZ/cmpxchg-03.ll
llvm/test/CodeGen/SystemZ/cmpxchg-04.ll
llvm/test/CodeGen/SystemZ/cmpxchg-05.ll
llvm/test/CodeGen/SystemZ/cmpxchg-06.ll