[llvm-branch-commits] [llvm] release/18.x: [GlobalOpt] Don't replace aliasee with alias that has weak linkage (#91483) (PR #92468)
Eli Friedman via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu May 16 16:24:58 PDT 2024
https://github.com/efriedma-quic approved this pull request.
LGTM
This only affects optimizations on weak aliases, and the logic is very simple: just don't optimize them.
As noted on the original pull request, this also affects some cases which might be safe to optimize (a weak alias where the aliasee is an internal symbol with no other references). But "optimizing" those cases doesn't really have any useful effect, anyway: it doesn't unblock any additional optimizations, and the resulting ELF is basically identical.
https://github.com/llvm/llvm-project/pull/92468
More information about the llvm-branch-commits
mailing list