https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108387
--- Comment #4 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:adbee4a197c7b735a3dd58cfac8933f70069f71d commit r13-5136-gadbee4a197c7b735a3dd58cfac8933f70069f71d Author: Richard Biener <rguent...@suse.de> Date: Fri Jan 13 08:37:24 2023 +0100 tree-optimization/108387 - ICE with VN handling of x << C as x * (1<<C) The following fixes unexpected simplification of x << C as x * (1<<C) to a constant. PR tree-optimization/108387 * tree-ssa-sccvn.cc (visit_nary_op): Check for SSA_NAME value before inserting expression into the tables. * gcc.dg/pr108387.c: New testcase.