Commit 2a6a0d80 by Bernd Schmidt Committed by Bernd Schmidt

* sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.

From-SVN: r171842
parent ec4efea9
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
* haifa-sched.c (queue_insn): New arg REASON. All callers * haifa-sched.c (queue_insn): New arg REASON. All callers
changed. Print it in debugging output. changed. Print it in debugging output.
* sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com> 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* config/spu/t-spu-elf (dp-bit.c): Use > instead of >>. * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
......
/* Instruction scheduling pass. /* Instruction scheduling pass.
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011
Free Software Foundation, Inc. Free Software Foundation, Inc.
Contributed by Michael Tiemann (tiemann@cygnus.com) Enhanced by, Contributed by Michael Tiemann (tiemann@cygnus.com) Enhanced by,
and currently maintained by, Jim Wilson (wilson@cygnus.com) and currently maintained by, Jim Wilson (wilson@cygnus.com)
...@@ -579,6 +579,9 @@ schedule_ebbs (void) ...@@ -579,6 +579,9 @@ schedule_ebbs (void)
{ {
rtx head = BB_HEAD (bb); rtx head = BB_HEAD (bb);
if (bb->flags & BB_DISABLE_SCHEDULE)
continue;
for (;;) for (;;)
{ {
edge e; edge e;
...@@ -591,6 +594,8 @@ schedule_ebbs (void) ...@@ -591,6 +594,8 @@ schedule_ebbs (void)
break; break;
if (e->probability <= probability_cutoff) if (e->probability <= probability_cutoff)
break; break;
if (e->dest->flags & BB_DISABLE_SCHEDULE)
break;
bb = bb->next_bb; bb = bb->next_bb;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment