Remove TARGET_GEN_MEMSET_SCRATCH_RTX since it's not used anymore.
authorliuhongt <hongtao.liu@intel.com>
Tue, 21 Mar 2023 08:47:25 +0000 (16:47 +0800)
committerliuhongt <hongtao.liu@intel.com>
Thu, 23 Mar 2023 01:17:14 +0000 (09:17 +0800)
commit7712736376b2ee775f88976117b4e8b4ea37841b
treeb94990a05c4d286bcc270d826cfdb350e8d9013e
parent50bd9c41d503497b3774476805c7e956fb9d5131
Remove TARGET_GEN_MEMSET_SCRATCH_RTX since it's not used anymore.

The target hook is only used by i386, and the current definition is
same as default gen_reg_rtx.

gcc/ChangeLog:

* builtins.cc (builtin_memset_read_str): Replace
targetm.gen_memset_scratch_rtx with gen_reg_rtx.
(builtin_memset_gen_str): Ditto.
* config/i386/i386-expand.cc
(ix86_convert_const_wide_int_to_broadcast): Replace
ix86_gen_scratch_sse_rtx with gen_reg_rtx.
(ix86_expand_vector_move): Ditto.
* config/i386/i386-protos.h (ix86_gen_scratch_sse_rtx):
Removed.
* config/i386/i386.cc (ix86_gen_scratch_sse_rtx): Removed.
(TARGET_GEN_MEMSET_SCRATCH_RTX): Removed.
* doc/tm.texi: Remove TARGET_GEN_MEMSET_SCRATCH_RTX.
* doc/tm.texi.in: Ditto.
* target.def: Ditto.
gcc/builtins.cc
gcc/config/i386/i386-expand.cc
gcc/config/i386/i386-protos.h
gcc/config/i386/i386.cc
gcc/doc/tm.texi
gcc/doc/tm.texi.in
gcc/target.def