re PR middle-end/56077 (volatile ignored when function inlined)
authorAndrey Belevantsev <abel@ispras.ru>
Mon, 25 Feb 2013 08:48:42 +0000 (12:48 +0400)
committerAndrey Belevantsev <abel@gcc.gnu.org>
Mon, 25 Feb 2013 08:48:42 +0000 (12:48 +0400)
2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
            Alexander Monakov  <amonakov@ispras.ru>

        PR middle-end/56077
        * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
        flush pending lists also on non-jumps.  Adjust comment.

Co-Authored-By: Alexander Monakov <amonakov@ispras.ru>
From-SVN: r196252

gcc/ChangeLog
gcc/sched-deps.c

index 71abb1c6b5032d94c74a0b84968ad6d89a8f1da8..999a6bd83725cc961ec224eff314326b89afaa7a 100644 (file)
@@ -1,3 +1,10 @@
+2013-02-25  Andrey Belevantsev  <abel@ispras.ru>
+           Alexander Monakov  <amonakov@ispras.ru>
+
+       PR middle-end/56077
+       * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
+       flush pending lists also on non-jumps.  Adjust comment.
+
 2013-02-24  Catherine Moore  <clm@codesourcery.com>
            Maciej W. Rozycki  <macro@codesourcery.com>
            Tom de Vries  <tom@codesourcery.com>
index 7de974b6358e9022e557038c81bd0a421f5a8910..da4b87910e587e1be2ee624748bea5b65000777e 100644 (file)
@@ -3317,9 +3317,9 @@ sched_analyze_insn (struct deps_desc *deps, rtx x, rtx insn)
             SET_REGNO_REG_SET (&deps->reg_last_in_use, i);
           }
 
-      /* Flush pending lists on jumps, but not on speculative checks.  */
-      if (JUMP_P (insn) && !(sel_sched_p ()
-                             && sel_insn_is_speculation_check (insn)))
+      /* Don't flush pending lists on speculative checks and for
+        selective scheduling.  */
+      if (!sel_sched_p () || !sel_insn_is_speculation_check (insn))
        flush_pending_lists (deps, insn, true, true);
 
       reg_pending_barrier = NOT_A_BARRIER;