Hello,
CodeGenPrepare
is currently a function pass which depends on ProfileSummaryInfoWrapperPass
, which is an ImmutablePass
, to obtain ProfileSummaryInfo
. While this works seamlessly with the legacy pass manager, ProfileSummaryInfo
can only be obtained from ProfileSummaryAnalysis
which is a module analysis pass for the new pass manager case. Since I only have access to FunctionAnalysisManager
, I am not sure how to collect ProfileSummaryInfo
. Any ideas?
Thanks,
Anshil Gandhi