llvm-c166/bolt/docs
Alexandros Lamprineas 3cc4656425
[BOLT][AArch64] Expand cmpbr when reversing would overflow (#202998)
AArch64 compare-and-branch instructions can usually be reversed by
changing the condition and adjusting the immediate. At boundary values,
that adjustment can underflow or overflow, leaving the branch
non-reversible.

When condition flags are dead at such a branch, split the compare branch
into an explicit compare followed by a conditional branch. The new
sequence lets branch fixup reverse the condition without relying on an
out-of-range adjusted immediate.

Teach the branch-fixing paths to use cached branch liveness information
when deciding whether this expansion is legal. The liveness snapshot is
built before branch relaxation/fixup and is safe for the current users:
they only insert trampolines/stubs between existing CFG edges or invert
branches without changing program semantics.

Since expansion can grow the source basic block, update the local
address accounting used by branch relaxation.

Assisted-by: Codex
2026-08-07 08:38:40 +01:00
..
_static
BAT.md [BOLT][Documentation] Prepare documentation for hosting (#201378) 2026-06-28 21:20:57 +08:00
BinaryAnalysis.md [BOLT][Documentation] Prepare documentation for hosting (#201378) 2026-06-28 21:20:57 +08:00
BOLTAArch64OptimizationStatus.md [docs] Finish MyST migration for BOLT docs (#210199) 2026-07-16 23:57:41 +00:00
CMakeLists.txt [docs] try again to handle doxygen everywhere (#203081) 2026-06-11 08:58:36 -04:00
CommandLineArgumentReference.md [BOLT][AArch64] Expand cmpbr when reversing would overflow (#202998) 2026-08-07 08:38:40 +01:00
conf.py [BOLT][Documentation] Prepare documentation for hosting (#201378) 2026-06-28 21:20:57 +08:00
doxygen-mainpage.dox
doxygen.cfg.in [docs] update CI to use latest release of doxygen (#202420) 2026-06-10 10:25:33 -04:00
generate_doc.py
GettingStarted.md [docs] Finish MyST migration for BOLT docs (#210199) 2026-07-16 23:57:41 +00:00
Heatmap.png
HeatmapHeader.png
Heatmaps.md
index.md [BOLT][docs] New backend guide (#211382) 2026-07-22 14:44:36 -07:00
NewBackend.md [BOLT][docs] New backend guide (#211382) 2026-07-22 14:44:36 -07:00
OptimizingClang.md [BOLT][Documentation] Prepare documentation for hosting (#201378) 2026-06-28 21:20:57 +08:00
OptimizingLinux.md
PointerAuthDesign.md [BOLT][Documentation] Prepare documentation for hosting (#201378) 2026-06-28 21:20:57 +08:00
profiles.md [BOLT] Add fdata symbols mode (#209932) 2026-07-16 17:31:30 -07:00
README.txt
RuntimeLibrary.md

BOLT Documentation
====================

The BOLT documentation is written using the Sphinx documentation generator. It
is currently tested with Sphinx 1.1.3.

To build the documents into html configure BOLT with the following cmake options:

  * -DLLVM_ENABLE_SPHINX=ON
  * -DBOLT_INCLUDE_DOCS=ON

After configuring BOLT with these options the make rule `docs-bolt-html` should
be available.