From: Jakub Jelinek Date: Wed, 30 Nov 2016 13:02:07 +0000 (+0100) Subject: i386.c (dimode_scalar_chain::convert_op): Avoid sharing the SUBREG rtx between move... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7bbc950b362cb825a54bb9da3dc06b29a1c68fbe;p=gcc.git i386.c (dimode_scalar_chain::convert_op): Avoid sharing the SUBREG rtx between move and following insn. * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid sharing the SUBREG rtx between move and following insn. From-SVN: r243018 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5b91b860c54..6c853e90b83 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2016-11-30 Jakub Jelinek + * config/i386/i386.c (dimode_scalar_chain::convert_op): Avoid + sharing the SUBREG rtx between move and following insn. + * ira.c (ira_update_equiv_info_by_shuffle_insn): Use copy_rtx for REG_EQUIV argument. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 5018ccb633a..a5f5339be67 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -3723,7 +3723,7 @@ dimode_scalar_chain::convert_op (rtx *op, rtx_insn *insn) emit_insn_before (seq, insn); } - emit_insn_before (gen_move_insn (tmp, vec_cst), insn); + emit_insn_before (gen_move_insn (copy_rtx (tmp), vec_cst), insn); *op = tmp; } else