diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2021-09-23 09:40:59 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2021-09-23 13:08:27 +0200 |
commit | 00446916206cbf9812a92b418090919515289a20 (patch) | |
tree | 180e6620efc5c7f720d95190db0e92103eca875c /gcc | |
parent | f3d357bab357abcbe4d8fc82898c68fd3a4c3471 (diff) | |
download | gcc-00446916206cbf9812a92b418090919515289a20.zip gcc-00446916206cbf9812a92b418090919515289a20.tar.gz gcc-00446916206cbf9812a92b418090919515289a20.tar.bz2 |
Remove dominator check in fold_using_range::range_of_phi.
Revert the following patch, as it was an artifact of diagnostic code
being run with improper IL.
commit 64b80b8819f9ea74712625bceb0ec4388e25f67d
Author: Aldy Hernandez <aldyh@redhat.com>
Date: Tue Sep 21 08:28:28 2021 +0200
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.
gcc/ChangeLog:
* gimple-range-fold.cc (fold_using_range::range_of_phi):
Remove dominator check.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/gimple-range-fold.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/gimple-range-fold.cc b/gcc/gimple-range-fold.cc index 1da1bef..35324fd 100644 --- a/gcc/gimple-range-fold.cc +++ b/gcc/gimple-range-fold.cc @@ -826,9 +826,7 @@ fold_using_range::range_of_phi (irange &r, gphi *phi, fur_source &src) } // If SCEV is available, query if this PHI has any knonwn values. - if (dom_info_available_p (CDI_DOMINATORS) - && scev_initialized_p () - && !POINTER_TYPE_P (TREE_TYPE (phi_def))) + if (scev_initialized_p () && !POINTER_TYPE_P (TREE_TYPE (phi_def))) { value_range loop_range; class loop *l = loop_containing_stmt (phi); |