aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim@codesourcery.com>2007-08-15 13:42:55 +0000
committerMaxim Kuvyrkov <mkuvyrkov@gcc.gnu.org>2007-08-15 13:42:55 +0000
commitc675e8ad36728c9c93b7beaa81d92985433778ae (patch)
tree49d274c0e4398f40e104ae5f0e9d327e5b6c5ed6 /gcc
parenta6783d12406f39457233f7ed022d8c62d19000ae (diff)
downloadgcc-c675e8ad36728c9c93b7beaa81d92985433778ae.zip
gcc-c675e8ad36728c9c93b7beaa81d92985433778ae.tar.gz
gcc-c675e8ad36728c9c93b7beaa81d92985433778ae.tar.bz2
mips.c (vr4130_swap_insns_p): Use new interface to scheduler dependencies.
* config/mips/mips.c (vr4130_swap_insns_p): Use new interface to scheduler dependencies. From-SVN: r127516
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/mips/mips.c13
2 files changed, 12 insertions, 6 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9d65315..2926b8d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-15 Maxim Kuvyrkov <maxim@codesourcery.com>
+
+ * config/mips/mips.c (vr4130_swap_insns_p): Use new interface to
+ scheduler dependencies.
+
2007-08-15 Rask Ingemann Lambertsen <rask@sygehus.dk>
* config/i386/i386.md (subsi3_carry_zext): Remove "m" constraint for
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 02bf87c..6f7f230 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -10930,7 +10930,8 @@ vr4130_true_reg_dependence_p (rtx insn)
static bool
vr4130_swap_insns_p (rtx insn1, rtx insn2)
{
- dep_link_t dep;
+ sd_iterator_def sd_it;
+ dep_t dep;
/* Check for the following case:
@@ -10940,11 +10941,11 @@ vr4130_swap_insns_p (rtx insn1, rtx insn2)
If INSN1 is the last instruction blocking X, it would better to
choose (INSN1, X) over (INSN2, INSN1). */
- FOR_EACH_DEP_LINK (dep, INSN_FORW_DEPS (insn1))
- if (DEP_LINK_KIND (dep) == REG_DEP_ANTI
- && INSN_PRIORITY (DEP_LINK_CON (dep)) > INSN_PRIORITY (insn2)
- && recog_memoized (DEP_LINK_CON (dep)) >= 0
- && get_attr_vr4130_class (DEP_LINK_CON (dep)) == VR4130_CLASS_ALU)
+ FOR_EACH_DEP (insn1, SD_LIST_FORW, sd_it, dep)
+ if (DEP_TYPE (dep) == REG_DEP_ANTI
+ && INSN_PRIORITY (DEP_CON (dep)) > INSN_PRIORITY (insn2)
+ && recog_memoized (DEP_CON (dep)) >= 0
+ && get_attr_vr4130_class (DEP_CON (dep)) == VR4130_CLASS_ALU)
return false;
if (vr4130_last_insn != 0