This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

condexec merge part 7


So I can use the function to clean up fallthru from 
conditional branches as well.


r~

        * flow.c (tidy_fallthru_edge): Don't delete the jump when it's
        a still-valid conditional jump.

Index: flow.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/flow.c,v
retrieving revision 1.262
diff -c -p -d -r1.262 flow.c
*** flow.c	2000/04/27 05:58:04	1.262
--- flow.c	2000/04/27 06:45:36
*************** tidy_fallthru_edge (e, b, c)
*** 2407,2413 ****
       If block B consisted only of this single jump, turn it into a deleted
       note.  */
    q = b->end;
!   if (GET_CODE (q) == JUMP_INSN)
      {
  #ifdef HAVE_cc0
        /* If this was a conditional jump, we need to also delete
--- 2407,2415 ----
       If block B consisted only of this single jump, turn it into a deleted
       note.  */
    q = b->end;
!   if (GET_CODE (q) == JUMP_INSN
!       && (simplejump_p (q)
! 	  || (b->succ == e && e->succ_next == NULL)))
      {
  #ifdef HAVE_cc0
        /* If this was a conditional jump, we need to also delete

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]