https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103351
--- Comment #6 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:f456eaf2e0fb3ceb51c641fd348429bf59d215a9 commit r12-5447-gf456eaf2e0fb3ceb51c641fd348429bf59d215a9 Author: Richard Biener <rguent...@suse.de> Date: Mon Nov 22 11:23:55 2021 +0100 tree-optimization/103351 - avoid compare-debug issue wrt CD-DCE change This avoids differences in the split edge of a cluster due to different order of same key PHI args when sorting by sorting after the edge destination index as second key. 2021-11-22 Richard Biener <rguent...@suse.de> PR tree-optimization/103351 * tree-ssa-dce.c (sort_phi_args): Sort after e->dest_idx as second key. * g++.dg/torture/pr103351.C: New testcase.