[all-commits] [llvm/llvm-project] beafd2: [TSan] Refactor ExternalAccess() to avoid unnecess...

Julian Lettner via All-commits all-commits at lists.llvm.org
Fri Mar 24 11:17:55 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: beafd235a743e37a89c67f6e273be64ed60ce301
      https://github.com/llvm/llvm-project/commit/beafd235a743e37a89c67f6e273be64ed60ce301
  Author: Julian Lettner <julian.lettner at apple.com>
  Date:   2023-03-24 (Fri, 24 Mar 2023)

  Changed paths:
    M compiler-rt/lib/tsan/rtl/tsan_external.cpp

  Log Message:
  -----------
  [TSan] Refactor ExternalAccess() to avoid unnecessary pop/push tag [NFC]

* Avoid unnecessary frame & tag push/pops if memory access is ignored
* Rename function and add comment to make it clearer what the code does
* Make helper functions static and move inside `#if !SANITIZER_GO`

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




More information about the All-commits mailing list