llvm-project
11d533ee - [BOLT][RISCV] Preserve hot fallthrough paths when placing cold jump stubs (#236726)

Commit
19 days ago
[BOLT][RISCV] Preserve hot fallthrough paths when placing cold jump stubs (#236726) RISC-V long-jump stubs for cross-fragment edges are currently inserted immediately after their source blocks, which can interrupt hot fallthrough paths and force hot execution to branch over cold stubs. Place stubs for zero-count edges at the end of the source fragment when the source has a fallthrough successor in the same fragment and a conservative distance bound fits within the conditional branch range. This follows BOLT's existing AArch64 strategy of keeping cold trampolines out of hot paths whenever branch reach permits.
Author
Parents
Loading