This is an archive of the discontinued LLVM Phabricator instance.

Use "equivalence class" instead of "color" to describe the concept in ICF.
ClosedPublic

Authored by ruiu on Dec 4 2016, 5:45 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

ruiu updated this revision to Diff 80222.Dec 4 2016, 5:45 PM
ruiu retitled this revision from to Use "equivalence class" instead of "color" to describe the concept in ICF..
ruiu updated this object.
ruiu added a reviewer: silvas.
ruiu added a subscriber: llvm-commits.
silvas edited edge metadata.Dec 4 2016, 7:01 PM

LGTM with a couple wording suggestions. Thanks.

Btw, did we lose the citation to the Gold ICF paper? I think we probably ought to mention it since the approach was inspired from there IIRC.

ELF/ICF.cpp
38 ↗(On Diff #80222)

Slight clarify improvement: s/At this moment/During this step/

Otherwise, "at this moment" might be interpreted as "this feature is not implemented" (though this doesn't make sense in context, but to a casual reader that would not necessarily be obvious)

43 ↗(On Diff #80222)

Small wording suggestion:

I would suggest replacing Relocation targets are compared by their equivalence class with Relocation targets are considered equivalent if their targets are in the same equivalence class. That is a bit more concrete.

This revision was automatically updated to reflect the committed changes.