[PATCH] D132495: [BOLT] Verify externally referenced blocks against jump table targets

Amir Ayupov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 30 18:32:34 PDT 2022


Amir updated this revision to Diff 456833.
Amir added a comment.

Add runtime test checking if the moved code with external data references to it
works correctly. If there's a reference to offset which is not a registered BB
or label, ignore the function.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132495

Files:
  bolt/lib/Core/BinaryFunction.cpp
  bolt/test/X86/shrinkwrapping-restore-position.s
  bolt/test/X86/unclaimed-jt-entries.s
  bolt/test/runtime/X86/Inputs/unclaimed-jt-entries.c
  bolt/test/runtime/X86/unclaimed-jt-entries.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132495.456833.patch
Type: text/x-patch
Size: 7113 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220831/29a04a5b/attachment.bin>


More information about the llvm-commits mailing list