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]

Re: loop.c: n_times_set, n_times_used


> Can you please send the remaining parts of this patch to egcs-patches. 
> Consider them pre-approved, so you can install them into the tree at
> the same time.

Ok, this is the patch that I checked in:

Thu Dec 17 08:27:03 1998  J"orn Rennecke <amylaar@cygnus.co.uk>

	* loop.c (combine_givs_used_by_other): Don't depend on n_times_set.

Index: loop.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/loop.c,v
retrieving revision 1.107
diff -p -r1.107 loop.c
*** loop.c	1998/12/16 20:57:13	1.107
--- loop.c	1998/12/17 08:26:09
*************** static int
*** 6305,6319 ****
  combine_givs_used_by_other (g1, g2)
       struct induction *g1, *g2;
  {
-   /* Lines marked with ??? test a condition that wasn't meant to be tested
-      and should be deleted.  */
    if (g1->giv_type == DEST_REG
-       && VARRAY_INT (n_times_set, REGNO (g1->dest_reg)) == 1 /* ??? */
        && reg_mentioned_p (g1->dest_reg, PATTERN (g2->insn)))
      return -1;
  
    if (g2->giv_type == DEST_REG
-       && VARRAY_INT (n_times_set, REGNO (g2->dest_reg)) == 1 /* ??? */
        && reg_mentioned_p (g2->dest_reg, PATTERN (g1->insn)))
      return 1;
  
--- 6305,6315 ----


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