[ELF] - ICF: Add test case to check many sections case.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 27 Jun 2018 14:37:02 +0000 (14:37 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 27 Jun 2018 14:37:02 +0000 (14:37 +0000)
commitdbbba29cc9c1ebf5532e5620395443cfd2902ec4
tree619ea19bd25ffef51614e73b6f9be32aeca10088
parent316327150bcc8c22973fb1120ca0e6421ef7331a
[ELF] - ICF: Add test case to check many sections case.

Currently, ICF does not enable threading if we have less than 1024
sections in each equivalence class.

And the following code is uncovered by our test cases:
https://github.com/llvm-mirror/lld/blob/master/ELF/ICF.cpp#L404

This patch adds a test case that triggers the mentioned code to execute.

llvm-svn: 335738
lld/test/ELF/icf-many-sections.s [new file with mode: 0644]