aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1999-10-26 05:05:00 +0000
committerJeff Law <law@gcc.gnu.org>1999-10-25 23:05:00 -0600
commit4525e228517b4c844828a8cff36b6707162bbae7 (patch)
tree6a23e18a1fa08474ab84141f538396480210f365 /gcc
parenta82cecdad559b58d6586f8dd8a71a92a090195b4 (diff)
downloadgcc-4525e228517b4c844828a8cff36b6707162bbae7.zip
gcc-4525e228517b4c844828a8cff36b6707162bbae7.tar.gz
gcc-4525e228517b4c844828a8cff36b6707162bbae7.tar.bz2
haifa-sched.c (add_dependence): Update the true dependency cache the first time we add a true dependence to the...
* haifa-sched.c (add_dependence): Update the true dependency cache the first time we add a true dependence to the LOG_LINKS chain. From-SVN: r30176
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/haifa-sched.c7
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b282864..1a66ccb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+Mon Oct 25 23:03:09 1999 Jeffrey A Law (law@cygnus.com)
+
+ * haifa-sched.c (add_dependence): Update the true dependency
+ cache the first time we add a true dependence to the LOG_LINKS chain.
+
Mon Oct 25 22:27:40 1999 Jim Kingdon <http://developer.redhat.com/>
* fold-const.c (fold): Fix comment.
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index a92b73d..99cc3af 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -827,6 +827,13 @@ add_dependence (insn, elem, dep_type)
/* Insn dependency, not data dependency. */
PUT_REG_NOTE_KIND (link, dep_type);
+
+#ifdef INSN_SCHEDULING
+ /* If we are adding a true dependency to INSN's LOG_LINKs, then
+ note that in the bitmap cache of true dependency information. */
+ if ((int)dep_type == 0 && true_dependency_cache)
+ SET_BIT (true_dependency_cache[INSN_LUID (insn)], INSN_LUID (elem));
+#endif
}
#ifdef HAVE_cc0