Skip debug insns in ix86_sched_reorder
authorH.J. Lu <hongjiu.lu@intel.com>
Mon, 4 Jun 2012 23:31:54 +0000 (23:31 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Mon, 4 Jun 2012 23:31:54 +0000 (16:31 -0700)
PR bootstrap/53555
* config/i386/i386.c (ix86_sched_reorder) Skip debug insns.

From-SVN: r188212

gcc/ChangeLog
gcc/config/i386/i386.c

index 53130faabc4692cc94ff62e84253f9963b9b57b6..b602d8aa9f8d8a1709bfc52162ef72216b367ba0 100644 (file)
@@ -1,3 +1,8 @@
+2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
+
+       PR bootstrap/53555
+       * config/i386/i386.c (ix86_sched_reorder) Skip debug insns.
+
 2012-06-04  Jason Merrill  <jason@redhat.com>
 
        * dwarf2out.c (is_unit_die): New.
index c6c2c5e5e5abd07461ed5caeb84f7b3dc66b373a..13755f4f8233041c34d81a8e1127e1792071e4c8 100644 (file)
@@ -23919,6 +23919,8 @@ ix86_sched_reorder(FILE *dump, int sched_verbose, rtx *ready, int *pn_ready,
         {
           rtx con;
          con = DEP_CON (dep);
+         if (!NONDEBUG_INSN_P (con))
+           continue;
           insn1 = PATTERN (con);
           if (GET_CODE (insn1) == PARALLEL)
             insn1 = XVECEXP (insn1, 0, 0);
@@ -23935,6 +23937,8 @@ ix86_sched_reorder(FILE *dump, int sched_verbose, rtx *ready, int *pn_ready,
                 {
                   rtx pro;
                   pro = DEP_PRO (dep1);
+                 if (!NONDEBUG_INSN_P (pro))
+                   continue;
                   if (pro != insn)
                     index = -1;
                }