[PATCH] D139811: sanmd: improve precision of UAR analysis

Dmitry Vyukov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 11 23:43:40 PST 2022


dvyukov created this revision.
dvyukov added a reviewer: melver.
Herald added subscribers: Enna1, hiraditya.
Herald added a project: All.
dvyukov requested review of this revision.
Herald added projects: Sanitizers, LLVM.
Herald added subscribers: llvm-commits, Sanitizers.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D139811

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139811.482005.patch
Type: text/x-patch
Size: 8110 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221212/af9d1fcd/attachment.bin>


More information about the llvm-commits mailing list