]> git.ipfire.org Git - thirdparty/gcc.git/commit
RTL: Merge rtx_equal_p and hash_rtx functions with their callback variants
authorUros Bizjak <ubizjak@gmail.com>
Wed, 14 Jun 2023 10:13:25 +0000 (12:13 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Sun, 18 Jun 2023 15:05:17 +0000 (17:05 +0200)
commit47fa3cef59a031f1b0fdce309ff634fab717606d
tree80280aaa71b46492063b7a4e5abd472b2ff8e711
parent8a96f240d71d367a2955ab9e0f0fef3a0b0e2a74
RTL: Merge rtx_equal_p and hash_rtx functions with their callback variants

Use default argument when callback function is not required to merge
rtx_equal_p and hash_rtx functions with their callback variants.

gcc/ChangeLog:

* cse.cc (hash_rtx_cb): Rename to hash_rtx.
(hash_rtx): Remove.
* early-remat.cc (remat_candidate_hasher::equal): Update
to call rtx_equal_p with rtx_equal_p_callback_function argument.
* rtl.cc (rtx_equal_p_cb): Rename to rtx_equal_p.
(rtx_equal_p): Remove.
* rtl.h (rtx_equal_p): Add rtx_equal_p_callback_function
argument with NULL default value.
(rtx_equal_p_cb): Remove function declaration.
(hash_rtx_cb): Ditto.
(hash_rtx): Add hash_rtx_callback_function argument
with NULL default value.
* sel-sched-ir.cc (free_nop_pool): Update function comment.
(skip_unspecs_callback): Ditto.
(vinsn_init): Update to call hash_rtx with
hash_rtx_callback_function argument.
(vinsn_equal_p): Ditto.
gcc/cse.cc
gcc/early-remat.cc
gcc/rtl.cc
gcc/rtl.h
gcc/sel-sched-ir.cc