* cfgcleanup.c (flow_find_cross_jump): Use INSN_P,not active_insn_p.
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>
Fri, 18 Apr 2003 22:34:20 +0000 (22:34 +0000)
committerRichard Kenner <kenner@gcc.gnu.org>
Fri, 18 Apr 2003 22:34:20 +0000 (18:34 -0400)
From-SVN: r65797

gcc/ChangeLog
gcc/cfgcleanup.c

index 3df6d2ccb3235840c4c641233817d03e02f3093b..894ea5658f00a6e9b44e929b870d6603408e9056 100644 (file)
@@ -1,5 +1,7 @@
 2003-04-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
 
+       * cfgcleanup.c (flow_find_cross_jump): Use INSN_P,not active_insn_p.
+
        * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
 
 2003-04-18  Olivier Hainque <hainque@act-europe.fr>
index 8ca6c41c3f21d639a43b0d2797f2e27ff702b27a..c9e64ed1b485dc13e35ad4720e014c0452b1ab91 100644 (file)
@@ -1044,10 +1044,10 @@ flow_find_cross_jump (mode, bb1, bb2, f1, f2)
   while (true)
     {
       /* Ignore notes.  */
-      while (!active_insn_p (i1) && i1 != bb1->head)
+      while (!INSN_P (i1) && i1 != bb1->head)
        i1 = PREV_INSN (i1);
 
-      while (!active_insn_p (i2) && i2 != bb2->head)
+      while (!INSN_P (i2) && i2 != bb2->head)
        i2 = PREV_INSN (i2);
 
       if (i1 == bb1->head || i2 == bb2->head)
@@ -1056,8 +1056,8 @@ flow_find_cross_jump (mode, bb1, bb2, f1, f2)
       if (!insns_match_p (mode, i1, i2))
        break;
 
-      /* Don't begin a cross-jump with a USE or CLOBBER insn.  */
-      if (active_insn_p (i1))
+      /* Don't begin a cross-jump with a NOTE insn.  */
+      if (INSN_P (i1))
        {
          /* If the merged insns have different REG_EQUAL notes, then
             remove them.  */
@@ -1096,13 +1096,13 @@ flow_find_cross_jump (mode, bb1, bb2, f1, f2)
      Two, it keeps line number notes as matched as may be.  */
   if (ninsns)
     {
-      while (last1 != bb1->head && !active_insn_p (PREV_INSN (last1)))
+      while (last1 != bb1->head && !INSN_P (PREV_INSN (last1)))
        last1 = PREV_INSN (last1);
 
       if (last1 != bb1->head && GET_CODE (PREV_INSN (last1)) == CODE_LABEL)
        last1 = PREV_INSN (last1);
 
-      while (last2 != bb2->head && !active_insn_p (PREV_INSN (last2)))
+      while (last2 != bb2->head && !INSN_P (PREV_INSN (last2)))
        last2 = PREV_INSN (last2);
 
       if (last2 != bb2->head && GET_CODE (PREV_INSN (last2)) == CODE_LABEL)