[llvm] [MergeFuncs] Don't introduce calls to (linkonce,weak)_odr functions. (PR #125050)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 24 07:57:13 PST 2025


https://github.com/fhahn commented:

I found another case where we would introduce calls to linkonce_odr/weak_odr functions, if we merge 3+ linkonce_odr/weak_odr functions.

To fix this, I updated the order to always ensure that the ODR functions come first.

I also updated the code to replace all direct callers of ODR functions to call the thunk

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


More information about the llvm-commits mailing list