[all-commits] [llvm/llvm-project] 5addb7: sanmd: improve precision of UAR analysis

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Mon Dec 12 02:42:34 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5addb736a9a8fd669c5daa80bd98e8d73b584e73
      https://github.com/llvm/llvm-project/commit/5addb736a9a8fd669c5daa80bd98e8d73b584e73
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2022-12-12 (Mon, 12 Dec 2022)

  Changed paths:
    M compiler-rt/test/metadata/covered.cpp
    M compiler-rt/test/metadata/uar.cpp
    M llvm/lib/Transforms/Instrumentation/SanitizerBinaryMetadata.cpp

  Log Message:
  -----------
  sanmd: improve precision of UAR analysis

Only mark functions that have address-taken locals
as requiring UAR checking.

On a large internal app this reduces number of marked functions
from 78441 to 66618. Mostly small, trivial getter/setter-type
functions are unmarked, but also some amount of larger
number-crunching-type functions are unmarked as well.

Reviewed By: melver

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




More information about the All-commits mailing list