Remove assertion checking for non-empty ProfileSummaryInfo.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I keep hitting this assertion when using LTO+PGO with an assertion enabled LLVM/clang build for the llvm-test-suite. While I haven't debugged this to the end, I suspect there is some oddities in the llvm-test-suite build not passing the ThinLTO or PGO parameters down properly to the google-benchmark files in there and ThinLTO choosing a partition where none of the functions has profile info.
While this is a somewhat badly setup build it should not hit an assertion in the compiler, can we drop this?
LGTM
We also hit this assert here: https://github.com/rust-lang/rust/pull/101403#issuecomment-1272519304 I believe in that case the problem is that some of the modules participating in ThinLTO do not have PGO information (and that's fine).
Hi @MatzeB, this assert is currently blocking progress on using LTO for the Rust compiler. If there any not any objections to this patch, could you land it please? Thanks!