Reset scev before invoking array_checker.
authorAndrew MacLeod <amacleod@redhat.com>
Tue, 26 Oct 2021 18:43:33 +0000 (14:43 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Thu, 28 Oct 2021 14:48:38 +0000 (10:48 -0400)
commitd46aeb5906b8ed7ee255cfbacc5cf9d2f56b850c
treecb81f6f5c2ff85d7daea343ad349bf116f6c3401
parentf70f17d03630fd948bc15a646ebe7e784125c4d4
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.
gcc/tree-vrp.c