[SampleProfile] Use LazyCallGraph instead of CallGraph
authorArthur Eubanks <aeubanks@google.com>
Mon, 20 Mar 2023 20:42:56 +0000 (13:42 -0700)
committerArthur Eubanks <aeubanks@google.com>
Mon, 20 Mar 2023 20:43:54 +0000 (13:43 -0700)
commiteecb8c5f06149baf970fa0943e9fb9a6afe00207
tree41756a4f3033483dfe7318cb0aabc994179356b7
parentda40f7e8b1b1c386cc4801f03082be582de93a65
[SampleProfile] Use LazyCallGraph instead of CallGraph

The function order in some tests had to be changed because they relied on ordering of functions returned in an SCC which is consistent but unspecified.
llvm/lib/Transforms/IPO/SampleProfile.cpp
llvm/test/Other/new-pm-thinlto-postlink-samplepgo-defaults.ll
llvm/test/Other/new-pm-thinlto-prelink-samplepgo-defaults.ll
llvm/test/Transforms/SampleProfile/profile-context-order.ll
llvm/test/Transforms/SampleProfile/profile-topdown-order.ll