https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100221
--- Comment #7 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:1adf11822bd48f4d65156b7642514630c08c4d00 commit r13-723-g1adf11822bd48f4d65156b7642514630c08c4d00 Author: Richard Biener <rguent...@suse.de> Date: Fri May 20 12:24:40 2022 +0200 tree-optimization/100221 - improve DSE a bit When facing multiple PHI defs and one feeding the other we can postpone processing uses of one and thus can proceed. 2022-05-20 Richard Biener <rguent...@suse.de> PR tree-optimization/100221 * tree-ssa-dse.cc (contains_phi_arg): New function. (dse_classify_store): Postpone PHI defs that feed another PHI in defs. * gcc.dg/tree-ssa/ssa-dse-44.c: New testcase. * gcc.dg/tree-ssa/ssa-dse-45.c: Likewise.