[llvm-branch-commits] [BOLT] Fix doTrace in BAT mode (PR #128546)

Amir Ayupov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Feb 24 10:46:03 PST 2025


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

When processing BOLTed binaries with BAT section, we used to
indiscriminately use `BAT->getFallthroughsInTrace` to record
fall-throughs, even if the function is not covered by BAT.

Fix that by using non-BAT CFG-based `getFallthroughsInTrace` if the
function is not in BAT.

Test Plan: updated bolt-address-translation-yaml.test





More information about the llvm-branch-commits mailing list