[PATCH] D41060: Add an option for ICFing data

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 11 10:09:51 PST 2017


On Mon, Dec 11, 2017 at 10:02 AM, Rafael Avila de Espindola <
rafael.espindola at gmail.com> wrote:

> Rui Ueyama via Phabricator <reviews at reviews.llvm.org> writes:
>
> > ruiu added a comment.
> >
> > We used to merge data for COFF but not anymore because it causes nasty
> problems that are hard to find and debug. E.g.
> https://bugs.chromium.org/p/chromium/issues/detail?id=682773#c24
> >
> > Are you sure you don't have that kind of issue?
>
> It is an explicit command line option, but some users do enable it.
>

Yeah, I know, but I wonder if you could actually link your program without
any hidden run-time errors. We've been using lld with such configuration
that all read-only data would be merged, and we didn't notice any error at
first. From that experience, I'm worried that this feature can be quite
dangerous which looks benign at first but actually creates hidden bugs. If
users including you really want this, I wouldn't stop thought.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171211/c6ed7479/attachment-0001.html>


More information about the llvm-commits mailing list