This is an archive of the discontinued LLVM Phabricator instance.

(NFC) Move summary-based opt before regular LTO.
AbandonedPublic

Authored by eugenis on May 26 2017, 2:52 PM.

Details

Summary

This is necessary for CFI-ICall + ThinLTO, because the regular LTO
step of CFI-ICall needs to know the results of, at least,
summary-based dead stripping.

Diff Detail

Repository
rL LLVM

Event Timeline

eugenis created this revision.May 26 2017, 2:52 PM
pcc edited edge metadata.May 26 2017, 3:04 PM

Can you just move the block with the call to computeDeadSymbols like this patch does?
https://github.com/pcc/llvm-project/commit/1731b9179a7a448469e2977aaae142fab75c6bbd

Why is it better than this change?

pcc added a comment.May 26 2017, 3:12 PM

If you just need the list of dead symbols, then there is no need to increase the scope of anything else. I would prefer to keep things as local as possible so that the flow of information is clearer.

eugenis abandoned this revision.May 26 2017, 4:49 PM