re PR tree-optimization/91109 ([arm] gcc.c-torture/execute/20040709-1.c fails since...
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Wed, 7 Aug 2019 13:45:06 +0000 (13:45 +0000)
committerBernd Edlinger <edlinger@gcc.gnu.org>
Wed, 7 Aug 2019 13:45:06 +0000 (13:45 +0000)
2019-08-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR tree-optimization/91109
        * lra-remat.c (update_scratch_ops): Remove assignment of the
        hard register.

From-SVN: r274163

gcc/ChangeLog
gcc/lra-remat.c

index a4b0c35f4ba36bd3aa430ee5cf5426cccd37bbe3..8ea14fe7011dedc2417c9b1a80775c00cad61585 100644 (file)
@@ -1,3 +1,9 @@
+2019-08-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
+
+       PR tree-optimization/91109
+       * lra-remat.c (update_scratch_ops): Remove assignment of the
+       hard register.
+
 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
 
        * data-streamer.h (streamer_write_poly_uint64): Declare.
index 6a5bf4f3f68c25726ad99841bd9a4239ba1d7efd..ef2a55271fb436fd375bade87366b334f53c5265 100644 (file)
@@ -1021,7 +1021,6 @@ get_hard_regs (struct lra_insn_reg *reg, int &nregs)
 static void
 update_scratch_ops (rtx_insn *remat_insn)
 {
-  int hard_regno;
   lra_insn_recog_data_t id = lra_get_insn_recog_data (remat_insn);
   struct lra_static_insn_data *static_id = id->insn_static_data;
   for (int i = 0; i < static_id->n_operands; i++)
@@ -1032,17 +1031,9 @@ update_scratch_ops (rtx_insn *remat_insn)
       int regno = REGNO (*loc);
       if (! lra_former_scratch_p (regno))
        continue;
-      hard_regno = reg_renumber[regno];
       *loc = lra_create_new_reg (GET_MODE (*loc), *loc,
                                 lra_get_allocno_class (regno),
                                 "scratch pseudo copy");
-      if (hard_regno >= 0)
-       {
-         reg_renumber[REGNO (*loc)] = hard_regno;
-         if (lra_dump_file)
-           fprintf (lra_dump_file, "    Assigning the same %d to r%d\n",
-                    REGNO (*loc), hard_regno);
-       }
       lra_register_new_scratch_op (remat_insn, i, id->icode);
     }