https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121035
--- Comment #5 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:9af57c471087a3a1b87621bce1208d6c77ba2a4a commit r16-2311-g9af57c471087a3a1b87621bce1208d6c77ba2a4a Author: Richard Biener <rguent...@suse.de> Date: Wed Jul 16 20:19:44 2025 +0200 tree-optimization/121035 - handle stray VN values without expression When VN iterates we can end up with unreachable inserted expressions in the expression tables which in turn will not be added to their value by PREs compute_avail. This will later ICE when we pick them up and want to generate them. Deal with this by giving up. PR tree-optimization/121035 * tree-ssa-pre.cc (find_or_generate_expression): Handle values without expression. * gcc.dg/pr121035.c: New testcase.