[PATCH] D36311: [ThinLTO] Add GraphTraits for FunctionSummaries

Charles Saternos via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 16 06:50:18 PDT 2017


ncharlie added a comment.

In https://reviews.llvm.org/D36311#843066, @davide wrote:

> I'm not sure you're always guaranteed to have the main function as entry point of your program.


Right - how would you recommend finding the root node of the callgraph so I can return that in the getEntryNode for the ModuleSummaryIndex? Since right now, it's just arbitrarily finding a FunctionSummary in the Index.


https://reviews.llvm.org/D36311





More information about the llvm-commits mailing list