[PATCH] D79314: PR45733 : global weak symbol are excluded from the optimization .

James Y Knight via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 15 07:34:05 PDT 2020


jyknight requested changes to this revision.
jyknight added a comment.

As @efriedma has been trying to tell you, this behavior is fully within the specification of the "weak_odr" linkage type in LLVM IR. If Clang should be emitting different LLVM IR (e.g. using 'weak' instead of a 'weak_odr'), that's a change that needs to happen in Clang, not the optimizers.

However, this is also not a bug in clang, but I'll comment on that on the bug.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79314/new/

https://reviews.llvm.org/D79314





More information about the llvm-commits mailing list