https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83051
--- Comment #6 from Jan Hubicka <hubicka at gcc dot gnu.org> --- The patch fixes overfow so we no longer ICE, but we probably should try to prevent branch prediction to predict loop to iterate so many times by special casing very deep loop nests.