https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97162
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Richard Biener from comment #5) > So just in case the following fixes it we've nailed it (somewhere I have a > verifier written...) > > diff --git a/gcc/tree-predcom.c b/gcc/tree-predcom.c > index b1d6e63559c..2f41ad222a0 100644 > --- a/gcc/tree-predcom.c > +++ b/gcc/tree-predcom.c > @@ -3326,6 +3326,7 @@ tree_predictive_commoning (void) > class loop *loop; > unsigned ret = 0, changed = 0; > > + scev_reset (); > initialize_original_copy_tables (); > FOR_EACH_LOOP (loop, LI_ONLY_INNERMOST) > if (optimize_loop_for_speed_p (loop)) Unfortunately, it doesn't help.