reload1.c (finish_spills): Do not check ira_conflicts_p when handling spilled pseudos.
authorVladimir Makarov <vmakarov@redhat.com>
Fri, 9 Aug 2019 21:22:22 +0000 (21:22 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 9 Aug 2019 21:22:22 +0000 (15:22 -0600)
* reload1.c (finish_spills): Do not check ira_conflicts_p when
handling spilled pseudos.

From-SVN: r274240

gcc/ChangeLog
gcc/reload1.c

index de5a347d5a3cee37b748cbb9afa73336f75896c4..95795549e3128ba45cf5d3e9ec7d1850b4f6cfe6 100644 (file)
@@ -1,3 +1,8 @@
+2019-09-09  Vladimir Makarov  <vmakarov@redhat.com>
+
+       * reload1.c (finish_spills): Do not check ira_conflicts_p when
+       handling spilled pseudos.
+
 2019-09-09  Richard Earnshaw  <rearnsha@arm.com>
 
        PR target/91386
index 38ee356a791dd917df1c971bd40c5f31400797a5..70a308e53371338611d314d196ee17c30fd16ab8 100644 (file)
@@ -4225,13 +4225,8 @@ finish_spills (int global)
       spill_reg_order[i] = -1;
 
   EXECUTE_IF_SET_IN_REG_SET (&spilled_pseudos, FIRST_PSEUDO_REGISTER, i, rsi)
-    if (! ira_conflicts_p || reg_renumber[i] >= 0)
+    if (reg_renumber[i] >= 0)
       {
-       /* Record the current hard register the pseudo is allocated to
-          in pseudo_previous_regs so we avoid reallocating it to the
-          same hard reg in a later pass.  */
-       gcc_assert (reg_renumber[i] >= 0);
-
        SET_HARD_REG_BIT (pseudo_previous_regs[i], reg_renumber[i]);
        /* Mark it as no longer having a hard register home.  */
        reg_renumber[i] = -1;