reorg.c (relax_delay_slots): Fixed test for mostly_true_jump.
authorHerman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
Thu, 22 Oct 1998 23:34:56 +0000 (01:34 +0200)
committerJeff Law <law@gcc.gnu.org>
Thu, 22 Oct 1998 23:34:56 +0000 (17:34 -0600)
        * reorg.c (relax_delay_slots): Fixed test for mostly_true_jump. The
        did not match the code.

From-SVN: r23239

gcc/ChangeLog
gcc/reorg.c

index 3c5452f519bd7bcc69f03aec25a1f7dbacdf23a5..d27c8a840222a63eba3a05e229675ac60d1fc7fb 100644 (file)
@@ -1,3 +1,8 @@
+1998-10-23 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
+
+       * reorg.c (relax_delay_slots): Fixed test for mostly_true_jump. The
+       did not match the code.
+
 Fri Oct 23 00:07:01 1998  Bernd Schmidt <crux@pool.informatik.rwth-aachen.de>
 
        * regclass.c (regclass): Break out some code into new function
index 9400615e23ab2daafbcaded616f7a41c184e8ee5..a26f9d20b2348b84d0494c4a0615388fb6e0b145 100644 (file)
@@ -4164,7 +4164,7 @@ relax_delay_slots (first)
          && (other = prev_active_insn (insn)) != 0
          && (condjump_p (other) || condjump_in_parallel_p (other))
          && no_labels_between_p (other, insn)
-         && 0 < mostly_true_jump (other,
+         && 0 > mostly_true_jump (other,
                                   get_branch_condition (other,
                                                         JUMP_LABEL (other))))
        {