[llvm-dev] ThinLTO and linkonce_odr + unnamed_addr

Rafael Avila de Espindola via llvm-dev llvm-dev at lists.llvm.org
Fri Feb 9 11:43:25 PST 2018


Mehdi AMINI via llvm-dev <llvm-dev at lists.llvm.org> writes:

> Isn't #2 actually changing the behavior by changing the visibility while
> llvm.compiler_used seems actually closest to current behavior to me?
>
> The visibility hidden would break comparison of function as you mentioned,
> which is not the case with auto-hide if I didn't miss anything.

If comparison is important and the IR has unnamed_addr it is
invalid. The reason for having unnamed_addr is to let llvm know that it
can ignore pointer comparisons.

Cheers,
Rafael


More information about the llvm-dev mailing list