[PATCH] D156206: [BOLT] Accept function start as valid jump table entry
Maksim Panchenko via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 24 22:39:41 PDT 2023
maksfb created this revision.
maksfb added reviewers: Amir, ayermolo, rafauler.
Herald added a subscriber: treapster.
Herald added a project: All.
maksfb requested review of this revision.
Herald added subscribers: llvm-commits, yota9.
Herald added a project: LLVM.
Jump tables may contain a function start address. One real-world example
is when a target basic block contains a recursive tail call that is
later optimized/folded into a jump table target.
While analyzing a jump table, we treat start address similar to an
address past the end of the containing function (a result of
__builtin_unreachable), i.e. we require another "regular" entry for the
heuristic to proceed.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D156206
Files:
bolt/lib/Core/BinaryContext.cpp
bolt/test/X86/jump-table-func-entry.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156206.543823.patch
Type: text/x-patch
Size: 3869 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230725/02b56e37/attachment.bin>
More information about the llvm-commits
mailing list