[llvm] [LTO] Add function alias as function instead of data (PR #112599)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 16 12:10:28 PDT 2024


teresajohnson wrote:

This is the legacy LTO handling, which I am less familiar with. Added @cachemeifyoucan who is a user of that and can probably give better guidance on the patch and a test case.

That being said it seems reasonable to me to treat a function alias as a function not data, but again, I'm unfamiliar with the handling here. It would be really good to have a test case. The llvm-lto tool is typically used to invoke the legacy LTO handling. Can you have a simple IR test where there is an alias and check the resulting assembly after llvm-lto?

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


More information about the llvm-commits mailing list