public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [lno] PR 15779
@ 2004-06-08 17:12 Zdenek Dvorak
  0 siblings, 0 replies; only message in thread
From: Zdenek Dvorak @ 2004-06-08 17:12 UTC (permalink / raw)
  To: gcc-patches

Hello,

this patch fixes the PR by cleaning up the invalidated fields.

Zdenek

Index: ChangeLog.lno
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/ChangeLog.lno,v
retrieving revision 1.1.2.175
diff -c -3 -p -r1.1.2.175 ChangeLog.lno
*** ChangeLog.lno	7 Jun 2004 20:38:30 -0000	1.1.2.175
--- ChangeLog.lno	8 Jun 2004 15:38:24 -0000
***************
*** 1,3 ****
--- 1,11 ----
+ 2004-06-08  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
+ 
+ 	PR tree-optimization/15779
+ 	* tree-scalar-evolution.c (scev_initialize): Clean the nb_iterations
+ 	field.
+ 	* tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables): Do
+ 	not clean nb_iterations field.
+ 
  2004-06-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
  
  	* version.c (version_string): Update "merged" stamp.
Index: tree-scalar-evolution.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-scalar-evolution.c,v
retrieving revision 1.1.2.52
diff -c -3 -p -r1.1.2.52 tree-scalar-evolution.c
*** tree-scalar-evolution.c	27 May 2004 14:33:05 -0000	1.1.2.52
--- tree-scalar-evolution.c	8 Jun 2004 15:38:24 -0000
*************** scev_initialize (struct loops *loops)
*** 3047,3053 ****
  
    for (i = 1; i < loops->num; i++)
      if (loops->parray[i])
!       flow_loop_scan (loops->parray[i], LOOP_EXIT_EDGES);
  }
  
  /* Cleans up the information cached by the scalar evolutions analysis.  */
--- 3047,3056 ----
  
    for (i = 1; i < loops->num; i++)
      if (loops->parray[i])
!       {
! 	flow_loop_scan (loops->parray[i], LOOP_EXIT_EDGES);
! 	loops->parray[i]->nb_iterations = NULL_TREE;
!       }
  }
  
  /* Cleans up the information cached by the scalar evolutions analysis.  */
Index: tree-ssa-loop-ivcanon.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-ssa-loop-ivcanon.c,v
retrieving revision 1.1.2.10
diff -c -3 -p -r1.1.2.10 tree-ssa-loop-ivcanon.c
*** tree-ssa-loop-ivcanon.c	29 May 2004 22:09:03 -0000	1.1.2.10
--- tree-ssa-loop-ivcanon.c	8 Jun 2004 15:38:24 -0000
*************** canonicalize_loop_induction_variables (s
*** 188,196 ****
    edge exit = NULL;
    tree niter;
  
-   /* ??? Why is this needed?  I.e. from where comes the invalid info?  */
-   loop->nb_iterations = NULL;
- 
    niter = number_of_iterations_in_loop (loop);
  
    if (TREE_CODE (niter) == INTEGER_CST)
--- 188,193 ----

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-08 15:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-08 17:12 [lno] PR 15779 Zdenek Dvorak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).