[BOLT] Set cold sections alignment explicitly
authorVladislav Khmelevsky <och95@yandex.ru>
Thu, 10 Mar 2022 18:38:55 +0000 (21:38 +0300)
committerVladislav Khmelevsky <och95@yandex.ru>
Tue, 15 Mar 2022 19:12:17 +0000 (22:12 +0300)
commit8ab69baad51a3f50800cb2eea9985fe5f2702438
treec1dee5c5286840a83b8f88f88fc4c7ff33bfe055
parent78406ac8985bcefcf38d00c6fd112067cc773d96
[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
bolt/include/bolt/Utils/CommandLineOpts.h
bolt/lib/Core/BinaryEmitter.cpp
bolt/lib/Passes/Aligner.cpp
bolt/lib/Passes/LongJmp.cpp
bolt/lib/Utils/CommandLineOpts.cpp