[PATCH] D30363: COFF ICF: Merge only functions. Do not merge read-only data.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 27 14:12:06 PST 2017


ruiu added a comment.

> Maybe, but I'd slightly prefer to encode the information in the object files rather than introducing another flag.
> 
> Although it looks like Chromium Windows builds are already using /OPT:REF and /OPT:ICF:
>  https://cs.chromium.org/chromium/src/build/config/win/BUILD.gn?type=cs&q=%22opt:icf%22&sq=package:chromium&l=102
>  (but only when building with Clang or fastlink because /PROFILE implies /OPT:NOICF contrary to what the comment says (!))
> 
> So now I'm confused as to how we were running into problems before.

Me too. If the MSVC linker behaves as described by the text that David pasted, the LLD'd behavior is not new to Chrome, so it shouldn't have caused an issue.


https://reviews.llvm.org/D30363





More information about the llvm-commits mailing list