[llvm-branch-commits] [BOLT] Explicitly check for returns when extending call continuation profile (PR #143295)

Amir Ayupov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Jun 7 21:19:06 PDT 2025


https://github.com/aaupov created https://github.com/llvm/llvm-project/pull/143295

Call continuation logic relies on assumptions about fall-through origin:
- the branch is external to the function,
- fall-through start is at the beginning of the block,
- the block is not an entry point or a landing pad.

Leverage trace information to explicitly check whether the origin is a
return instruction, and defer to checks above only in case of
DSO-external branch source.

This covers both regular and BAT cases, addressing call continuation
fall-through undercounting in the latter mode.

Test Plan: TBD





More information about the llvm-branch-commits mailing list