[llvm] [BOLT][AArch64] Add indirect call promotion support (PR #184733)

Alexey Moksyakov via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 29 00:50:23 PDT 2026


yavtuk wrote:

@Jianghibo  hello, may I ask you to verify functionality on the following test

```
#include <stdio.h>

void hello() {
    printf("hello....\n");
}

void execute(void (*callback)()) {
    callback();
}

int main() {
    execute(hello);

    return 0;
}
```
clang -pie -O0 /tmp/icp.c -o /tmp/icp.exe -Wl,-q

what I am waiting from icp=calls optimization that inside execute function will be promotion for hello function based on fdata 


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


More information about the llvm-commits mailing list