This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

aeubanks created this revision.Mar 30 2021, 5:26 PM
aeubanks requested review of this revision.Mar 30 2021, 5:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 30 2021, 5:26 PM

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

ping

I can keep the check to see if the alias itself is interposable, although it sounds like that shouldn't matter

rnk added a comment.Apr 19 2021, 2:26 PM

We chatted about this, and convinced ourselves to keep the original check

aeubanks updated this revision to Diff 338980.Apr 20 2021, 1:33 PM

keep check of alias itself

aeubanks edited the summary of this revision. (Show Details)Apr 20 2021, 1:34 PM
rnk accepted this revision.Apr 20 2021, 1:39 PM

lgtm

This revision is now accepted and ready to land.Apr 20 2021, 1:39 PM