[PATCH] D112197: [msan] Don't use TLS slots of noundef args

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 20 21:12:38 PDT 2021


vitalybuka created this revision.
vitalybuka added reviewers: eugenis, kda, kstoimenov.
Herald added a subscriber: hiraditya.
vitalybuka requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Transformations may strip the attribute from the
argument, e.g. for unused, which will result in
shadow offsets mismatch between caller and
callee.

Stripping noundef for used arguments can be
a problem, as TLS is not going to be set
by caller. However this is not the goal of the
patch and I am not aware if that's even
possible.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112197

Files:
  llvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
  llvm/test/Instrumentation/MemorySanitizer/msan_eager.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112197.381142.patch
Type: text/x-patch
Size: 5827 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211021/6b7fcee6/attachment.bin>


More information about the llvm-commits mailing list