]> git.ipfire.org Git - thirdparty/gcc.git/commit
Make compute_operand2_range a leaf call.
authorAndrew MacLeod <amacleod@redhat.com>
Wed, 5 Jul 2023 17:52:21 +0000 (13:52 -0400)
committerAndrew MacLeod <amacleod@redhat.com>
Wed, 5 Jul 2023 23:06:30 +0000 (19:06 -0400)
commit988b07a66a96d70c47f697dd0d07c0e14c742451
treeb7f4b7867463d8ff220a326818fe494a151e941c
parent018e7f16408022dbea9d2d4570150ce823117e08
Make compute_operand2_range a leaf call.

Rather than creating long call chains, put the onus for finishing
the evlaution on the caller.

* gimple-range-gori.cc (compute_operand_range): After calling
compute_operand2_range, recursively call self if needed.
(compute_operand2_range): Turn into a leaf function.
(gori_compute::compute_operand1_and_operand2_range): Finish
operand2 calculation.
* gimple-range-gori.h (compute_operand2_range): Remove name param.
gcc/gimple-range-gori.cc
gcc/gimple-range-gori.h