…ted mode For thin-lto, the pull request [1] reduced the number of renaming due to promotions in process mode. This has been used in linux kernel ([2]) as it helps kernel live patching a lot. Recently, I found Rong Xu has added thin-lto distributed mode support in linux kenrel ([3]) and it is likely to be merged in kernel as well. So it would be a good idea for llvm to support reducing the number of renaming in distributed mode too. To implement this, in function gatherImportedSummariesForModule(), import functions into summaries if those functions does not need rename. This will ensure that imported functions have the same name as in there original module. [1] https://github.com/llvm/llvm-project/pull/183793 [2] https://git.kernel.org/pub/scm/linux/kernel/git/kbuild/linux.git/commit/?h=kbuild-for-next&id=dc3b90751d6ffa8865e09a81645a539b9de6d642 [3] https://lore.kernel.org/linux-kbuild/20251028182822.3210436-3-xur@google.com/
16 KiB
16 KiB