]> git.ipfire.org Git - thirdparty/gcc.git/commit
Move condexpr_adjust into gimple-range-fold
authorAndrew MacLeod <amacleod@redhat.com>
Tue, 21 May 2024 16:41:49 +0000 (12:41 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Thu, 23 May 2024 20:50:55 +0000 (16:50 -0400)
commit83bb9ad465f0c92c24658702804ee003183a9028
treee086e61501318c9a596e12faef392e61d594c71e
parentfae5e6a4dfcf9270cd09c2240480860b09c2c627
Move condexpr_adjust into gimple-range-fold

Certain components of GORI were needed in order to process a COND_EXPR
expression and calculate the 2 operands as if they were true and false edges
based on the condition.   With GORI available from the range_query
objcet now, this can be moved into the fold_using_range code where it
really belongs.

* gimple-range-edge.h (range_query::condexpr_adjust): Delete.
* gimple-range-fold.cc (fold_using_range::range_of_range_op): Use
gori_ssa routine.
(fold_using_range::range_of_address): Likewise.
(fold_using_range::range_of_phi): Likewise.
(fold_using_range::condexpr_adjust): Relocated from gori_compute.
(fold_using_range::range_of_cond_expr): Use local condexpr_adjust.
(fur_source::register_outgoing_edges): Use gori_ssa routine.
* gimple-range-fold.h (gori_ssa): Rename from gori_bb.
(fold_using_range::condexpr_adjust): Add prototype.
* gimple-range-gori.cc (gori_compute::condexpr_adjust): Relocate.
* gimple-range-gori.h (gori_compute::condexpr_adjust): Delete.
gcc/gimple-range-edge.h
gcc/gimple-range-fold.cc
gcc/gimple-range-fold.h
gcc/gimple-range-gori.cc
gcc/gimple-range-gori.h