[llvm] Port CodeGenPrepare to new pass manager (and BasicBlockSectionsProfil… (PR #75380)

Nick Anderson via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 18 09:53:08 PST 2023


nickleus27 wrote:

@arsenm After debugging, it looks like I am failing some tests because `PSI` is nullptr, `PSI = MAMProxy.getCachedResult<ProfileSummaryAnalysis>(*F.getParent());` This would mean `ProfileSummaryAnalysis` is not cached and hasn't been run. It seems `CodeGenPrepare` expects PSI not to be nullptr. Any suggestions on how to make sure ProfileSummaryAnalysis is cached before getting to CodeGenPrepare? Thank you for your time.

https://github.com/llvm/llvm-project/pull/75380


More information about the llvm-commits mailing list