[PATCH] D29104: Add !associated metadata.

Evgeniy Stepanov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 17 15:00:05 PST 2017


eugenis added inline comments.


================
Comment at: docs/LangRef.rst:5112
+unless the referenced object is also discarded. All IR transforms must
+preserve this metadata.
+
----------------
eugenis wrote:
> mehdi_amini wrote:
> > I don't think this is an OK property of metadata.
> > Have you look for another representation that would not have this constraint?
> It does not seem to be that bad. After all, !type and !absolute_symbol already have that property, they just don't document it.
How about now?
Under this list of conditions the metadata can be discarded, which will make the global non-discardable.


Repository:
  rL LLVM

https://reviews.llvm.org/D29104





More information about the llvm-commits mailing list