https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97901
--- Comment #2 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:ec383f0bdb4077b744d493d02afff5f13f33029e commit r11-5158-gec383f0bdb4077b744d493d02afff5f13f33029e Author: Richard Biener <rguent...@suse.de> Date: Thu Nov 19 10:43:35 2020 +0100 tree-optimization/97901 - ICE propagating out LC PHIs We need to fold the stmt to canonicalize MEM_REFs which means we're back to using replace_uses_by. Which means we need dominators to not require a CFG cleanup upthread. 2020-11-19 Richard Biener <rguent...@suse.de> PR tree-optimization/97901 * tree-ssa-propagate.c (clean_up_loop_closed_phi): Compute dominators and use replace_uses_by. * gcc.dg/torture/pr97901.c: New testcase.