]> git.ipfire.org Git - thirdparty/gcc.git/commit
Move relation discovery into compute_operand_range
authorAndrew MacLeod <amacleod@redhat.com>
Tue, 4 Jul 2023 15:28:52 +0000 (11:28 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Wed, 5 Jul 2023 23:06:30 +0000 (19:06 -0400)
commit70d1e3f40f09102c6b12c58d97809552b1a08961
tree0eae3ce00c34edd1496fffbe2930eb33ba5dbe6c
parentacfe8fa8dc4907e8fe7b878654112c397d6d59c3
Move relation discovery into compute_operand_range

compute_operand1_range and compute_operand2_range were both doing
relation discovery between the 2 operands... move it into a common area.

* gimple-range-gori.cc (compute_operand_range): Check for
a relation between op1 and op2 and use that instead.
(compute_operand1_range): Don't look for a relation override.
(compute_operand2_range): Ditto.
gcc/gimple-range-gori.cc