https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102940
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andrew Macleod <amacl...@gcc.gnu.org>: https://gcc.gnu.org/g:d46aeb5906b8ed7ee255cfbacc5cf9d2f56b850c commit r12-4773-gd46aeb5906b8ed7ee255cfbacc5cf9d2f56b850c Author: Andrew MacLeod <amacl...@redhat.com> Date: Tue Oct 26 14:43:33 2021 -0400 Reset scev before invoking array_checker. Before invoking the array_checker, we need to reset scev so it will not try to access any ssa_names that the substitute and fold engine has freed. PR tree-optimization/102940 * tree-vrp.c (execute_ranger_vrp): Reset scev.