[llvm] [BOLT][ICP] Propagate parent hash to newly inserted BBs for BAT (PR #171044)
Amir Ayupov via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 10 06:18:57 PST 2025
https://github.com/aaupov requested changes to this pull request.
Thank you for investigating the issue. Generally I agree we should be associating the profile of ICP-created blocks with the original block containing the indirect call.
In terms of implementation, I think explicitly inserting the blocks into BBHashMap is not the right approach, as we'd need to do that in any optimization that copies or inserts blocks. Instead, since we associate the input address of the original indirect call with created blocks, let's use it to look up the block hash.
https://github.com/llvm/llvm-project/pull/171044
More information about the llvm-commits
mailing list