This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Support jump table entry to sibling's builtin_unreachable
Needs ReviewPublic

Authored by nhuhuan on Aug 1 2022, 2:30 PM.

Details

Summary

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

Diff Detail

Event Timeline

nhuhuan created this revision.Aug 1 2022, 2:30 PM
Herald added a reviewer: Amir. · View Herald Transcript
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: ayermolo. · View Herald Transcript
nhuhuan requested review of this revision.Aug 1 2022, 2:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 1 2022, 2:30 PM
nhuhuan updated this revision to Diff 449479.Aug 2 2022, 4:34 PM

Support builtin_unreachable when another function is placed
after the sibling fragment