[all-commits] [llvm/llvm-project] abb825: tsan: optimize __tsan_read/write16

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Tue Dec 21 02:33:40 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: abb825725ebcde24011690caeeb88e582927b780
      https://github.com/llvm/llvm-project/commit/abb825725ebcde24011690caeeb88e582927b780
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-12-21 (Tue, 21 Dec 2021)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_interface.cpp
    M compiler-rt/lib/tsan/rtl/tsan_interface.inc
    M compiler-rt/lib/tsan/rtl/tsan_rtl_access.cpp

  Log Message:
  -----------
  tsan: optimize __tsan_read/write16

These callbacks are used for SSE vector accesses.
In some computational programs these accesses dominate.
Currently we do 2 uninlined 8-byte accesses to handle them.
Inline and optimize them similarly to unaligned accesses.
This reduces the vector access benchmark time from 8 to 3 seconds.

Depends on D112603.

Reviewed By: melver

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




More information about the All-commits mailing list