diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2023-07-05 13:52:21 -0400 |
---|---|---|
committer | Andrew MacLeod <amacleod@redhat.com> | 2023-07-05 19:06:30 -0400 |
commit | 988b07a66a96d70c47f697dd0d07c0e14c742451 (patch) | |
tree | b7f4b7867463d8ff220a326818fe494a151e941c /gcc/gimple-range-gori.h | |
parent | 018e7f16408022dbea9d2d4570150ce823117e08 (diff) | |
download | gcc-988b07a66a96d70c47f697dd0d07c0e14c742451.zip gcc-988b07a66a96d70c47f697dd0d07c0e14c742451.tar.gz gcc-988b07a66a96d70c47f697dd0d07c0e14c742451.tar.bz2 |
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.
Diffstat (limited to 'gcc/gimple-range-gori.h')
-rw-r--r-- | gcc/gimple-range-gori.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-range-gori.h b/gcc/gimple-range-gori.h index 1d451fa..b8d97d1 100644 --- a/gcc/gimple-range-gori.h +++ b/gcc/gimple-range-gori.h @@ -186,7 +186,7 @@ private: const vrange &lhs, fur_source &src, value_relation *rel = NULL); bool compute_operand2_range (vrange &r, gimple_range_op_handler &handler, - const vrange &lhs, tree name, fur_source &src, + const vrange &lhs, fur_source &src, value_relation *rel = NULL); bool compute_operand1_and_operand2_range (vrange &r, gimple_range_op_handler &handler, |