https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113707
--- Comment #6 from GCC 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:42959acb8409c39e1c71c43528832611c3b71e25 commit r14-8800-g42959acb8409c39e1c71c43528832611c3b71e25 Author: Richard Biener <rguent...@suse.de> Date: Mon Feb 5 09:44:12 2024 +0100 tree-optimization/113707 - ICE with VN elimination The following avoids different avail answers depending on how the iteration progressed. PR tree-optimization/113707 * tree-ssa-sccvn.cc (rpo_elim::eliminate_avail): After checking the avail set treat out-of-region defines as available. * gcc.dg/torture/pr113707-1.c: New testcase. * gcc.dg/torture/pr113707-2.c: Likewise.