Re: [PATCH] RTL: Merge rtx_equal_p and hash_rtx functions with their callback variants

2023-06-17 Thread Jeff Law via Gcc-patches
On 6/14/23 04:15, Uros Bizjak via Gcc-patches wrote: 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. *

[PATCH] RTL: Merge rtx_equal_p and hash_rtx functions with their callback variants

2023-06-14 Thread Uros Bizjak via Gcc-patches
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