re PR target/91498 (STV change in r274481 causes 300.twolf regression on Haswell)
authorRichard Biener <rguenther@suse.de>
Wed, 21 Aug 2019 08:44:59 +0000 (08:44 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 21 Aug 2019 08:44:59 +0000 (08:44 +0000)
2019-08-21  Richard Biener  <rguenther@suse.de>

PR target/91498
PR target/91503
* config/i386/i386-features.c
(general_scalar_chain::make_vector_copies): Copy stack temporary
rtx when using it multiple times.
(general_scalar_chain::convert_reg): Likewise.

From-SVN: r274792

gcc/ChangeLog
gcc/config/i386/i386-features.c

index 7f0686b5efa853ed568e8ea8fb67d716e63eea05..c17d0e14c4f8dc7228cc9954d67d2c8110d825c7 100644 (file)
@@ -1,3 +1,12 @@
+2019-08-21  Richard Biener  <rguenther@suse.de>
+
+       PR target/91498
+       PR target/91503
+       * config/i386/i386-features.c
+       (general_scalar_chain::make_vector_copies): Copy stack temporary
+       rtx when using it multiple times.
+       (general_scalar_chain::convert_reg): Likewise.
+
 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
 
        * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
index c27ea16862d7cf78da0aa356c69c88d76bf058ca..fb7ac1b7d1026379f04f705202911550e8e36b7a 100644 (file)
@@ -706,7 +706,7 @@ general_scalar_chain::make_vector_copies (unsigned regno)
                                gen_rtx_SUBREG (SImode, reg, 4));
              }
            else
-             emit_move_insn (tmp, reg);
+             emit_move_insn (copy_rtx (tmp), reg);
            emit_insn (gen_rtx_SET (gen_rtx_SUBREG (vmode, vreg, 0),
                                    gen_gpr_to_xmm_move_src (vmode, tmp)));
          }
@@ -810,7 +810,7 @@ general_scalar_chain::convert_reg (unsigned regno)
                                  adjust_address (tmp, SImode, 4));
                }
              else
-               emit_move_insn (scopy, tmp);
+               emit_move_insn (scopy, copy_rtx (tmp));
            }
          else if (!TARGET_64BIT && smode == DImode)
            {