[all-commits] [llvm/llvm-project] 5a3439: [BOLT] Make order of jump table successors determi...

maksfb via All-commits all-commits at lists.llvm.org
Mon Feb 14 10:37:37 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5a343994c3f5b546a4afc02a90ad7ecb2ce0d3ca
      https://github.com/llvm/llvm-project/commit/5a343994c3f5b546a4afc02a90ad7ecb2ce0d3ca
  Author: Maksim Panchenko <maks at fb.com>
  Date:   2022-02-14 (Mon, 14 Feb 2022)

  Changed paths:
    M bolt/include/bolt/Core/BinaryBasicBlock.h
    M bolt/lib/Core/BinaryBasicBlock.cpp
    M bolt/lib/Core/BinaryFunction.cpp
    A bolt/test/X86/Inputs/jump-table-pic.s
    A bolt/test/X86/jump-table-pic-order.test

  Log Message:
  -----------
  [BOLT] Make order of jump table successors deterministic

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

Reviewed By: yota9

Differential Revision: https://reviews.llvm.org/D119672




More information about the All-commits mailing list