mirror of
https://github.com/siemens-mobile-hacks/llvm-c166.git
synced 2026-11-25 21:45:57 +00:00
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 |
||
|---|---|---|
| .. | ||
| _static | ||
| BAT.md | ||
| BinaryAnalysis.md | ||
| BOLTAArch64OptimizationStatus.md | ||
| CMakeLists.txt | ||
| CommandLineArgumentReference.md | ||
| conf.py | ||
| doxygen-mainpage.dox | ||
| doxygen.cfg.in | ||
| generate_doc.py | ||
| GettingStarted.md | ||
| Heatmap.png | ||
| HeatmapHeader.png | ||
| Heatmaps.md | ||
| index.md | ||
| NewBackend.md | ||
| OptimizingClang.md | ||
| OptimizingLinux.md | ||
| PointerAuthDesign.md | ||
| profiles.md | ||
| 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.