https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104676
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:a4066d3a5097333f17c0d7be1630a98f3a5b1c1d commit r12-7372-ga4066d3a5097333f17c0d7be1630a98f3a5b1c1d Author: Richard Biener <rguent...@suse.de> Date: Thu Feb 24 14:34:52 2022 +0100 tree-optimization/104676 - free nb_iterations after loop distribution Loop distribution can release SSA names used in nb_iterations, make sure to release those. 2022-02-24 Richard Biener <rguent...@suse.de> PR tree-optimization/104676 * tree-loop-distribution.cc (loop_distribution::execute): Do a full scev_reset. * gcc.dg/torture/pr104676.c: New testcase.