[all-commits] [llvm/llvm-project] 8ab69b: [BOLT] Set cold sections alignment explicitly

Vladislav Khmelevsky via All-commits all-commits at lists.llvm.org
Tue Mar 15 12:13:20 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8ab69baad51a3f50800cb2eea9985fe5f2702438
      https://github.com/llvm/llvm-project/commit/8ab69baad51a3f50800cb2eea9985fe5f2702438
  Author: Vladislav Khmelevsky <och95 at yandex.ru>
  Date:   2022-03-15 (Tue, 15 Mar 2022)

  Changed paths:
    M bolt/include/bolt/Utils/CommandLineOpts.h
    M bolt/lib/Core/BinaryEmitter.cpp
    M bolt/lib/Passes/Aligner.cpp
    M bolt/lib/Passes/LongJmp.cpp
    M bolt/lib/Utils/CommandLineOpts.cpp

  Log Message:
  -----------
  [BOLT] Set cold sections alignment explicitly

The cold text section alignment is set using the maximum alignment value
passed to the emitCodeAlignment. In order to calculate tentetive layout
right we will set the minimum alignment of such sections to the maximum
possible function alignment explicitly.

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




More information about the All-commits mailing list