Both the alias and aliasee linkage are important.
PR27866 provides some background.
Paths
| Differential D99629
[GlobalOpt] Don't replace alias with aliasee if aliasee is interposable ClosedPublic Authored by aeubanks on Mar 30 2021, 5:26 PM.
Details Summary Both the alias and aliasee linkage are important. PR27866 provides some background.
Diff Detail
Event TimelineComment Actions As far as I can tell regarding PR27866, it seems that the linkage type of an alias doesn't do anything. Let me know if I'm misunderstanding Comment Actions ping I can keep the check to see if the alias itself is interposable, although it sounds like that shouldn't matter This revision is now accepted and ready to land.Apr 20 2021, 1:39 PM Closed by commit rG16ff1a7023db: [GlobalOpt] Don't replace alias with aliasee if aliasee is interposable (authored by aeubanks). · Explain WhyApr 22 2021, 1:24 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 339769 llvm/lib/Transforms/IPO/GlobalOpt.cpp
llvm/test/Transforms/GlobalOpt/alias-resolve.ll
|