]> git.ipfire.org Git - thirdparty/gcc.git/commit
Do not query SCEV in range_of_phi unless dominators are available.
authorAldy Hernandez <aldyh@redhat.com>
Tue, 21 Sep 2021 06:28:28 +0000 (08:28 +0200)
committerAldy Hernandez <aldyh@redhat.com>
Tue, 21 Sep 2021 16:55:13 +0000 (18:55 +0200)
commit64b80b8819f9ea74712625bceb0ec4388e25f67d
tree80a7f3954ace46d7689c477fd0325f22a82c7d92
parent08f392534a2c65fcebb1ce5a2f04459ac993a2f0
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.
gcc/gimple-range-fold.cc