[all-commits] [llvm/llvm-project] fd184c: [TSAN] Honor failure memory orders in AtomicCAS

Bruno Cardoso Lopes via All-commits all-commits at lists.llvm.org
Thu May 13 01:08:09 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fd184c062c1a1b4727ddf0452ebab11fb8834880
      https://github.com/llvm/llvm-project/commit/fd184c062c1a1b4727ddf0452ebab11fb8834880
  Author: Bruno Cardoso Lopes <bruno.cardoso at gmail.com>
  Date:   2021-05-13 (Thu, 13 May 2021)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp
    A compiler-rt/test/tsan/compare_exchange.cpp
    M llvm/test/Instrumentation/ThreadSanitizer/atomic.ll

  Log Message:
  -----------
  [TSAN] Honor failure memory orders in AtomicCAS

LLVM has lifted strong requirements for CAS failure memory orders in 431e3138a and 819e0d105e84.

Add support for honoring them in `AtomicCAS`.

https://github.com/google/sanitizers/issues/970

Differential Revision: https://reviews.llvm.org/D99434




More information about the All-commits mailing list