https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84077
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Adding __attribute__((optimize (0))) to DCPProfile::apply also does help, which means the problem is likely in that method or something that is inline into it.