Jan Hubicka <hubicka@freesoft.cz>
authorJan Hubicka <hubicka@freesoft.cz>
Wed, 14 Apr 1999 09:21:40 +0000 (11:21 +0200)
committerRichard Henderson <rth@gcc.gnu.org>
Wed, 14 Apr 1999 09:21:40 +0000 (02:21 -0700)
Jan Hubicka <hubicka@freesoft.cz>
        * i386.c (x86_adjust_cost): Agi stall takes 1 cycle on Pentium, fst
        requires value to be ready one extra cycle.

From-SVN: r26441

gcc/ChangeLog
gcc/config/i386/i386.c

index 825d6ff29930cc11a754b97b641dad504fdab7c6..21b0b5cf69fe87ea712e05bf6d509e90698a3670 100644 (file)
@@ -1,3 +1,8 @@
+Wed Apr 14 09:19:39 1999  Jan Hubicka <hubicka@freesoft.cz>
+
+       * i386.c (x86_adjust_cost): Agi stall takes 1 cycle on Pentium, fst
+       requires value to be ready one extra cycle.
+
 Wed Apr 14 11:28:34 1999  Dave Brolley  <brolley@cygnus.com>
 
        * config/i386/i386.c (memory_address_length): Add missing parenthesis.
index 425da935b10289cd22c678859faaef785706d466..3da661affe29a7a0bcdf8b0f9bb2c1cc372c3194 100644 (file)
@@ -5424,7 +5424,7 @@ x86_adjust_cost (insn, link, dep_insn, cost)
        return 0;
 
       if (agi_dependent (insn, dep_insn))
-       return 3;
+       return cost ? cost + 1 : 2;
 
       if (GET_CODE (insn) == INSN
          && GET_CODE (PATTERN (insn)) == SET
@@ -5435,6 +5435,10 @@ x86_adjust_cost (insn, link, dep_insn, cost)
        return 0;
       break;
 
+      /* Stores stalls one cycle longer than other insns.  */
+      if (is_fp_insn (insn) && cost && is_fp_store (dep_insn))
+        cost++;
+
     case PROCESSOR_K6:
     default:
       if (!is_fp_dest (dep_insn))