aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.cc
diff options
context:
space:
mode:
authorAldy Hernandez <aldyh@redhat.com>2022-12-21 19:26:00 +0100
committerAldy Hernandez <aldyh@redhat.com>2023-04-26 11:12:39 +0200
commit04e5ddf8a313e85348a05c27708c845cc45e2e83 (patch)
tree66f1c3a7b6837694f0a3a33ccb3ada78d8db0efb /gcc/tree.cc
parent5bdc5155138abeb244be1690998b359152445be6 (diff)
downloadgcc-04e5ddf8a313e85348a05c27708c845cc45e2e83.zip
gcc-04e5ddf8a313e85348a05c27708c845cc45e2e83.tar.gz
gcc-04e5ddf8a313e85348a05c27708c845cc45e2e83.tar.bz2
Fix swapping of ranges.
The legacy range code has logic to swap out of order endpoints in the irange constructor. The new irange code expects the caller to fix any inconsistencies, thus speeding up the common case. However, this means that when we remove legacy, any stragglers must be fixed. This patch fixes the 3 culprits found during the conversion. gcc/ChangeLog: * range-op.cc (operator_cast::op1_range): Use create_possibly_reversed_range. (operator_bitwise_and::simple_op1_range_solver): Same. * value-range.cc (swap_out_of_order_endpoints): Delete. (irange::set): Remove call to swap_out_of_order_endpoints.
Diffstat (limited to 'gcc/tree.cc')
0 files changed, 0 insertions, 0 deletions