[all-commits] [llvm/llvm-project] 1e1f75: sanitizer_common: split LibIgnore into fast/slow p...

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Sun Jul 11 02:34:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e1f7520279c93a59fa6511028ff40412065985e
      https://github.com/llvm/llvm-project/commit/1e1f7520279c93a59fa6511028ff40412065985e
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-07-11 (Sun, 11 Jul 2021)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_libignore.cpp
    M compiler-rt/lib/sanitizer_common/sanitizer_libignore.h

  Log Message:
  -----------
  sanitizer_common: split LibIgnore into fast/slow paths

LibIgnore is checked in every interceptor.
Currently it has all logic in the single function
in the header, which makes it uninlinable.
Split it into fast path (no libraries ignored)
and slow path (have ignored libraries).
It makes the fast path inlinable (single load).

Reviewed By: vitalybuka

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




More information about the All-commits mailing list