This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Make order of jump table successors deterministic
ClosedPublic

Authored by maksfb on Feb 13 2022, 11:02 AM.

Details

Summary

When a jump table is recovered in postProcessIndirectBranches(),
successors for the containing basic block are added in random order.
Make the order deterministic.

Diff Detail

Event Timeline

maksfb created this revision.Feb 13 2022, 11:02 AM
maksfb requested review of this revision.Feb 13 2022, 11:02 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 13 2022, 11:02 AM
yota9 accepted this revision.Feb 13 2022, 11:25 AM
This revision is now accepted and ready to land.Feb 13 2022, 11:25 AM
This revision was automatically updated to reflect the committed changes.