[llvm] [BOLT]Identify indirect call (PR #123305)

Paschalis Mpeis via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 24 01:21:34 PST 2025


https://github.com/paschalis-mpeis commented:


Thanks a lot for your work Nicholas. Also, it's great that you are very active to BOLT!

I am not sure how valid this is, but is it guaranteed that the indirect branch won't somehow end up to another block of the same function? Because if it does, then it may not be a tail-call.

I presume this is why you require the function not to be a `isMultiEntry`?
In that case will such block targets indeed be registered as secondary entrypoints, and therefore you safely ignore such edge case?

I have some more comments on code but let's hear on this first. Thanks again!

https://github.com/llvm/llvm-project/pull/123305


More information about the llvm-commits mailing list