haifa-sched.c (add_dependence): Update the true dependency cache the first time we...
authorJeffrey A Law <law@cygnus.com>
Tue, 26 Oct 1999 05:05:00 +0000 (05:05 +0000)
committerJeff Law <law@gcc.gnu.org>
Tue, 26 Oct 1999 05:05:00 +0000 (23:05 -0600)
        * 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

gcc/ChangeLog
gcc/haifa-sched.c

index b282864fb4e73afa047e8e27cf906de5a883f949..1a66ccb0e99bff5b06ab5d2da06e8c676a1372ea 100644 (file)
@@ -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.
index a92b73df47625e7db235a6be7390fab7cffe2a80..99cc3af9429fa1b7b91afec91a31979d72be0a04 100644 (file)
@@ -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