https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82831
--- Comment #27 from Jan Hubicka <hubicka at gcc dot gnu.org> --- I would still suggest here going with Martin's patch: it is incorrect to attempt to change the partition after BB order has been fixed. We can incrementally deal with the missed optimization in this quite rare scenario that code duplication makes it possible to transfer BB from hot to cold partition. Given it happens only sometimes during full bootstrap, I am not sure it is worth the effort.