diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2022-12-21 19:26:00 +0100 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2023-04-26 11:12:39 +0200 |
commit | 04e5ddf8a313e85348a05c27708c845cc45e2e83 (patch) | |
tree | 66f1c3a7b6837694f0a3a33ccb3ada78d8db0efb /gcc/tree-ssa-phiopt.cc | |
parent | 5bdc5155138abeb244be1690998b359152445be6 (diff) | |
download | gcc-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-ssa-phiopt.cc')
0 files changed, 0 insertions, 0 deletions