[PATCH] D130943: [BOLT] Support jump table entry to sibling's builtin_unreachable

Huan Nguyen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 1 14:30:12 PDT 2022


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

Previously, only builtin_unreachable of functions accessing jump table
are handled. For split function where jump table could also target the
builtin_unreachable of other sibling fragments, this constraint will
thwart valid entries after such builtin_unreachable entry, and lead to
incorrect jump table analysis results.

This update extend support for builtin_unreachable in sibling fragment.

Test Plan:

  ninja check-bolt


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D130943

Files:
  bolt/include/bolt/Core/BinaryFunction.h
  bolt/lib/Core/BinaryBasicBlock.cpp
  bolt/lib/Core/BinaryContext.cpp
  bolt/lib/Core/BinaryFunction.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130943.449127.patch
Type: text/x-patch
Size: 6344 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220801/6435e077/attachment.bin>


More information about the llvm-commits mailing list