http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45631
--- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> --- Not much ideas except for implementing more smart (=expensive) common value histogram collection. I wonder how often such patterns hits us in practice? The problem here is that the functions are interleaving in regular pattern that won't get the counters to saturate...