diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2023-04-05 15:59:38 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2023-04-06 08:32:04 -0400 |
commit | 7f056d5f4a0b9e29561d0375d5b4ad42c9f3f61e (patch) | |
tree | ecae54d1ba39aa1892e835c9a0d59014cacc5adc /gcc/fortran | |
parent | d2a499a9881c7c079d2a722b57c7fcf022a864dd (diff) | |
download | gcc-7f056d5f4a0b9e29561d0375d5b4ad42c9f3f61e.zip gcc-7f056d5f4a0b9e29561d0375d5b4ad42c9f3f61e.tar.gz gcc-7f056d5f4a0b9e29561d0375d5b4ad42c9f3f61e.tar.bz2 |
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.
Diffstat (limited to 'gcc/fortran')
0 files changed, 0 insertions, 0 deletions