diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2021-09-21 08:28:28 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2021-09-21 18:55:13 +0200 |
commit | 64b80b8819f9ea74712625bceb0ec4388e25f67d (patch) | |
tree | 80a7f3954ace46d7689c477fd0325f22a82c7d92 /gcc/fortran/array.c | |
parent | 08f392534a2c65fcebb1ce5a2f04459ac993a2f0 (diff) | |
download | gcc-64b80b8819f9ea74712625bceb0ec4388e25f67d.zip gcc-64b80b8819f9ea74712625bceb0ec4388e25f67d.tar.gz gcc-64b80b8819f9ea74712625bceb0ec4388e25f67d.tar.bz2 |
Do not query SCEV in range_of_phi unless dominators are available.
SCEV won't work without dominators and we can get called without
dominators from debug_ranger.
Another option would be to rename scev_initialized_p to something like
scev_available_p and move the check there. For now, this will do.
gcc/ChangeLog:
* gimple-range-fold.cc (fold_using_range::range_of_phi): Check
dom_info_available_p.
Diffstat (limited to 'gcc/fortran/array.c')
0 files changed, 0 insertions, 0 deletions