[all-commits] [llvm/llvm-project] 9e1cce: tsan: don't instrument __attribute__((naked)) func...

Anton Bikineev via All-commits all-commits at lists.llvm.org
Thu Apr 9 04:52:57 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9e1ccec8d5296fe786308f791e49dbb9640f5090
      https://github.com/llvm/llvm-project/commit/9e1ccec8d5296fe786308f791e49dbb9640f5090
  Author: Anton Bikineev <bikineev at chromium.org>
  Date:   2020-04-09 (Thu, 09 Apr 2020)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/ThreadSanitizer.cpp
    M llvm/test/Instrumentation/ThreadSanitizer/tsan_basic.ll

  Log Message:
  -----------
  tsan: don't instrument __attribute__((naked)) functions

Naked functions are required to not have compiler generated
prologues/epilogues, hence no instrumentation is needed for them.

Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=45400

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




More information about the All-commits mailing list