summaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-20 17:19:39 +0000
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>2000-12-20 17:19:39 +0000
commitd6141c0ca920b76a6c3295041c35545e3b5ebb1b (patch)
tree6792bf552c4e374a8b4a117207dec07374ea6a0d /gcc/haifa-sched.c
parentc9784e7e0fdcd44fb9c273c241b76f487767e5b6 (diff)
downloadgcc-d6141c0ca920b76a6c3295041c35545e3b5ebb1b.tar.gz
Support scheduling across extended basic blocks
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@38400 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index 32ccf82bcba..349897419ec 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -144,6 +144,7 @@ the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "flags.h"
#include "insn-config.h"
#include "insn-attr.h"
+#include "insn-flags.h"
#include "except.h"
#include "toplev.h"
#include "recog.h"
@@ -740,7 +741,7 @@ priority (insn)
next = XEXP (link, 0);
/* Critical path is meaningful in block boundaries only. */
- if (BLOCK_NUM (next) != BLOCK_NUM (insn))
+ if (! (*current_sched_info->contributes_to_priority) (next, insn))
continue;
next_priority = insn_cost (insn, link, next) + priority (next);