aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/tree.cc
diff options
context:
space:
mode:
authorAndrew MacLeod <amacleod@redhat.com>2024-05-21 12:41:49 -0400
committerAndrew MacLeod <amacleod@redhat.com>2024-05-23 16:50:55 -0400
commit83bb9ad465f0c92c24658702804ee003183a9028 (patch)
treee086e61501318c9a596e12faef392e61d594c71e /gcc/cp/tree.cc
parentfae5e6a4dfcf9270cd09c2240480860b09c2c627 (diff)
downloadgcc-83bb9ad465f0c92c24658702804ee003183a9028.zip
gcc-83bb9ad465f0c92c24658702804ee003183a9028.tar.gz
gcc-83bb9ad465f0c92c24658702804ee003183a9028.tar.bz2
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.
Diffstat (limited to 'gcc/cp/tree.cc')
0 files changed, 0 insertions, 0 deletions