diff options
author | Jiufu Guo <guojiufu@linux.ibm.com> | 2022-12-09 13:50:37 +0800 |
---|---|---|
committer | Jiufu Guo <guojiufu@linux.ibm.com> | 2022-12-09 19:19:39 +0800 |
commit | 71b31d13757ae0f544651c29b113ccf120573760 (patch) | |
tree | d5db2dbc11f6943119103a3aa5eb28f4653cfaf0 /gcc/fortran/st.cc | |
parent | 96cb786b754919f41dc7de9566a68ed25a4bf3fa (diff) | |
download | gcc-71b31d13757ae0f544651c29b113ccf120573760.zip gcc-71b31d13757ae0f544651c29b113ccf120573760.tar.gz gcc-71b31d13757ae0f544651c29b113ccf120573760.tar.bz2 |
rs6000: Remove useless copy_rtx in rs6000_emit_set_{,long}_const
Function rs6000_emit_set_const/rs6000_emit_set_long_const are only invoked from
two "define_split"s where the target operand is limited to gpc_reg_operand or
int_reg_operand, then the operand must be REG_P.
And in rs6000_emit_set_const/rs6000_emit_set_long_const, to create temp rtx,
it is using code like "gen_reg_rtx({S|D}Imode)", it must also be REG_P.
So, copy_rtx is not needed for temp and dest.
This patch removes those "copy_rtx" for rs6000_emit_set_const and
rs6000_emit_set_long_const.
gcc/ChangeLog:
* config/rs6000/rs6000.cc (rs6000_emit_set_const): Remove copy_rtx.
(rs6000_emit_set_long_const): Likewise.
Diffstat (limited to 'gcc/fortran/st.cc')
0 files changed, 0 insertions, 0 deletions