When a jump table is recovered in postProcessIndirectBranches(),
successors for the containing basic block are added in random order.
Make the order deterministic.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D119672
[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(),
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Feb 13 2022, 11:25 AM Closed by commit rG5a343994c3f5: [BOLT] Make order of jump table successors deterministic (authored by maksfb). · Explain WhyFeb 14 2022, 10:37 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 408499 bolt/include/bolt/Core/BinaryBasicBlock.h
bolt/lib/Core/BinaryBasicBlock.cpp
bolt/lib/Core/BinaryFunction.cpp
bolt/test/X86/Inputs/jump-table-pic.s
bolt/test/X86/jump-table-pic-order.test
|