This allows using definitions that are not prevailing, but equivalent to the prevailing one, to be used for link-time optimization.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 3472 Build 3472: arc lint + arc unit
Event Timeline
Comment Actions
D29059 needs this so that when we have a definition in a regular object and one in LTO, and we select the one in the regular object, we can still use the knowledge of the definition in LTO. The COFF linker has a test (lto-comdat.ll) that will fail without this.
Comment Actions
Can you add a test please?
Also, make sure the test verifies that if the first module to be added contains a non-prevailing copy, and then the second one contains the prevailing copy, the prevailing one overwrite the one you kept as available_externally from the first module.
Comment Actions
I have a local change (with a test) that does something similar, I'll pull it out of my local branch and send it out.
@inglorion, sorry for the conflict!