This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Prevent unsetting unknown control flow for split jump table
ClosedPublic

Authored by Amir on Feb 22 2023, 4:51 PM.

Details

Summary

In case of a function with unknown control flow but with a single jump
table and a single jump table site, we attempt to match the jump table
and a site and update block successors using jump table targets.
Restrict this behavior for split jump tables which have targets in a
fragment function.

Fixes https://github.com/llvm/llvm-project/issues/60795.

Diff Detail

Event Timeline

Amir created this revision.Feb 22 2023, 4:51 PM
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Amir requested review of this revision.Feb 22 2023, 4:51 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 22 2023, 4:51 PM
Amir updated this revision to Diff 499673.Feb 22 2023, 5:02 PM

Update test

Amir updated this revision to Diff 499682.Feb 22 2023, 5:25 PM

Simplify debug message

This revision is now accepted and ready to land.Feb 27 2023, 2:16 PM