[PATCH] D133232: [msan] Try to disambiguate warnings origns

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 2 13:35:00 PDT 2022


vitalybuka created this revision.
Herald added subscribers: Enna1, hiraditya.
Herald added a project: All.
vitalybuka requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

If multiple warnings created on the same instruction (debug location)
it can be difficult to fugure out which input values is the cause.

This patches chains origins just before the warning using last origins
update debug informations.

To avoid inflating binary unnececary, we do this only when uncertanty is
high ennough, 3 warnings by default. On average it adds 0.4% to the
.text size.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D133232

Files:
  llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
  llvm/test/Instrumentation/MemorySanitizer/disambiguate-origin.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133232.457691.patch
Type: text/x-patch
Size: 10190 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220902/fba67e28/attachment.bin>


More information about the llvm-commits mailing list