[PATCH] D132053: [BOLT] Fix ignored LP at fragment start

Fabian Parzefall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 17 11:30:08 PDT 2022


FPar created this revision.
FPar added reviewers: maksfb, yota9, Amir, rafauler.
Herald added a subscriber: ayermolo.
Herald added a project: All.
FPar requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

If the first block of a fragment is also a landing pad, the landing pad
is not used if an exception is thrown. This is because the landing pad
is at the same start address that the corresponding LSDA describes. In
that case, the offset in the call site records to refer to that landing
pad is zero, and a zero offset is interpreted by the personality
function as "no handler" and ignored.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D132053

Files:
  bolt/lib/Core/BinaryEmitter.cpp
  bolt/test/runtime/X86/Inputs/lp-fragment-start.fdata
  bolt/test/runtime/X86/lp-fragment-start.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132053.453372.patch
Type: text/x-patch
Size: 7836 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220817/97a70558/attachment.bin>


More information about the llvm-commits mailing list