Linker: Avoid scheduling the link of a global value twice due to an alias
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 28 Apr 2021 01:02:22 +0000 (18:02 -0700)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 28 Apr 2021 20:22:10 +0000 (13:22 -0700)
commit9131a078901b00e68248a27a4f8c4b11bb1db1ae
tree8c56427120506599dbd27b1d3413d46733908077
parent0cc3e10f5e291d85d5c5047ee783340a8694a249
Linker: Avoid scheduling the link of a global value twice due to an alias

3d4f3a0da90bd1a3 (https://reviews.llvm.org/D20586) avoided rescheduling
a global value that was materialized first through a regular value, and
then again through an alias. This commit catches the dual, avoiding
rescheduling when the global value is first materialized through an
alias.

Differential Revision: https://reviews.llvm.org/D101419
Radar-Id: rdar://75752728
llvm/lib/Linker/IRMover.cpp
llvm/test/Linker/alias-4.ll [new file with mode: 0644]