[llvm] [BOLT][AArch64] Add indirect call promotion support (PR #184733)
Haibo Jiang via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 5 00:08:31 PST 2026
Jianghibo wrote:
> @Jianghibo hello, thanks for the PR. I think we should exclude indirect branch promotion until we add jump tables support. for aarch64, functions with indirect branches skipped from optimizations due to lack of understanding, this is a part of the jump table pattern or just an indirect call.
>
> at the current moment for indirect call promotion optimization need to insert snippet to compare target address and blr reg value and go to basic block where direct call is or go to BB with indirect call instruction
Sorry, I might not get your meaning. Why exclude ICP optimization? I know that functions in jumpable will skip optimization, and ICP for the function with jumptable is also skipped. The remaining indirect function calls and tail-call scenarios will still benefit.
https://github.com/llvm/llvm-project/pull/184733
More information about the llvm-commits
mailing list