[PATCH] D49362: [ThinLTO] Internalize read only globals
Eugene Leviant via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 6 11:11:20 PST 2018
evgeny777 added a comment.
> I'm not sure why we couldn't import and make a local copy of the aliasee when an alias to it is preserved and/or not eligible to import
My guess is because alias and aliasee are in the fact the same object (both point to the same memory location). Now assume alias is preserved and visible outside of the DSO. One can modify the object via alias (during program initialization for example) which
will take no effect on aliasee if it's been imported to a different module and internalized.
https://reviews.llvm.org/D49362
More information about the llvm-commits
mailing list