https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105185
--- Comment #3 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:27bfd13437c773a050f532ed164907de54b5a64f commit r12-8046-g27bfd13437c773a050f532ed164907de54b5a64f Author: Richard Biener <rguent...@suse.de> Date: Thu Apr 7 09:16:50 2022 +0200 tree-optimization/105185 - simplify modref query in SCCVN This simplifies the modref query for calls in SCCVN again after r12-8019-g4be08315124281, avoiding an ICE when the modref analyzed access lacks an actual argument on the caller side. It effectively reverts r12-7531-gdc46350d44c294. 2022-04-07 Richard Biener <rguent...@suse.de> PR tree-optimization/105185 * tree-ssa-sccvn.cc (visit_reference_op_call): Simplify modref query again. * gcc.dg/torture/pr105185.c: New testcase.