]> git.ipfire.org Git - thirdparty/gcc.git/commit
Check if dependency is valid before using in may_recompute_p.
authorAndrew MacLeod <amacleod@redhat.com>
Wed, 5 Apr 2023 19:59:38 +0000 (15:59 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Thu, 6 Apr 2023 12:32:04 +0000 (08:32 -0400)
commit7f056d5f4a0b9e29561d0375d5b4ad42c9f3f61e
treeecae54d1ba39aa1892e835c9a0d59014cacc5adc
parentd2a499a9881c7c079d2a722b57c7fcf022a864dd
Check if dependency is valid before using in may_recompute_p.

When the IL is rewritten after a statement has been processed and
dependencies cached, its possible that an ssa-name in the dependency
cache is no longer in the IL.  Check this before trying to recompute.

PR tree-optimization/109417
gcc/
* gimple-range-gori.cc (gori_compute::may_recompute_p): Check if
dependency is in SSA_NAME_FREE_LIST.

gcc/testsuite/
* gcc.dg/pr109417.c: New.
gcc/gimple-range-gori.cc
gcc/testsuite/gcc.dg/pr109417.c [new file with mode: 0644]