llvm-project
llvm-project copied to clipboard
Incorrect deduplication of MergeInputSection's
| Bugzilla Link | 36910 |
| Resolution | FIXED |
| Resolved on | Mar 27, 2018 10:24 |
| Version | unspecified |
| OS | Windows NT |
| Attachments | Lit test reproducible |
| CC | @rui314 |
Extended Description
When using "--icf=all --ignore-data-address-equality", MergeInputSection's whose contents are not equal may be incorrectly deduplicated.
This incorrect behaviour is caused by the fact that the Data member of MergeInputSection, which is used by ICF to check equality of contents, is always empty.
Fixed in https://reviews.llvm.org/rL328624 by Andrew Ng.
A potential fix for this bug can be found here:
https://reviews.llvm.org/D44898