[PATCH] D23488: ThinLTO: add early "dead-stripping" on the Index

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 19 14:37:08 PST 2016


tejohnson added a comment.

In https://reviews.llvm.org/D23488#627135, @mehdi_amini wrote:

> As an alternative, have you considered having a bit "used" (or "do not dead strip") that would express in the summary exactly what we want?


Yes, that would be another alternative, I thought about that but was hoping it could be avoided, but maybe not easily. The bit would probably need to be set for any variable that starts with "llvm." to be safely conservative (e.g. we should also consider anything in llvm.used or llvm.compiler.used as potentially live).


https://reviews.llvm.org/D23488





More information about the llvm-commits mailing list