[PATCH] D92440: [dfsan] Support passing non-i16 shadow values in TLS mode

stephan.yichao.zhao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 3 15:26:27 PST 2020


stephan.yichao.zhao updated this revision to Diff 309387.
stephan.yichao.zhao added a comment.

switched to 2-byte alignment to be consistent with 16bit shadow values.

With this alignment, its binary code about TLS is the same as the code before this diff.
For large binaries with original size > 2G, the additional overhead is -0.1%. So its
overall code size overhead is slightly smaller than the current codegen.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D92440/new/

https://reviews.llvm.org/D92440

Files:
  compiler-rt/lib/dfsan/dfsan.cpp
  llvm/lib/Transforms/Instrumentation/DataFlowSanitizer.cpp
  llvm/test/Instrumentation/DataFlowSanitizer/arith.ll
  llvm/test/Instrumentation/DataFlowSanitizer/call.ll
  llvm/test/Instrumentation/DataFlowSanitizer/callback.ll
  llvm/test/Instrumentation/DataFlowSanitizer/fast16labels.ll
  llvm/test/Instrumentation/DataFlowSanitizer/load.ll
  llvm/test/Instrumentation/DataFlowSanitizer/phi.ll
  llvm/test/Instrumentation/DataFlowSanitizer/select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92440.309387.patch
Type: text/x-patch
Size: 21932 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201203/6fb72ff8/attachment.bin>


More information about the llvm-commits mailing list