This is an archive of the discontinued LLVM Phabricator instance.

[ThinLTO] Simplify attribute propagation
AbandonedPublic

Authored by evgeny777 on Nov 7 2019, 6:49 AM.

Details

Reviewers
tejohnson
Summary

It looks like not calling to canImportGlobalVar during attribute propagation doesn't break any tests. Also, technically speaking, whether or not object can be imported shouldn't affect its readonly property

Diff Detail

Event Timeline

evgeny777 created this revision.Nov 7 2019, 6:49 AM
evgeny777 edited the summary of this revision. (Show Details)Nov 7 2019, 6:49 AM

Given the write only bug that popped up with the earlier patch, I'm wondering if this is safe. I.e. we must import a global variable if we have marked it as write only, so if we don't import it later (because it fails one of the legality checks in canImportGlobalVar), then we can end up in trouble.

evgeny777 abandoned this revision.Feb 9 2020, 9:55 PM