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]
Other format: [Raw text]

Re: [patch] Always initialize current_loops in loop_optimizer_init


Hi,

On 5/25/07, Zdenek Dvorak <rakdver@kam.mff.cuni.cz> wrote:
Index: tree-chrec.c
===================================================================
*** tree-chrec.c        (revision 124985)
--- tree-chrec.c        (working copy)
*************** evolution_function_is_invariant_rec_p (t
*** 974,986 ****
  bool
  evolution_function_is_invariant_p (tree chrec, int loopnum)
  {
!   if (evolution_function_is_constant_p (chrec))
!     return true;
!
!   if (current_loops != NULL)
!     return evolution_function_is_invariant_rec_p (chrec, loopnum);
!
!   return false;
  }

  /* Determine whether the given tree is an affine multivariate
--- 974,980 ----
  bool
  evolution_function_is_invariant_p (tree chrec, int loopnum)
  {
!   return evolution_function_is_invariant_rec_p (chrec, loopnum);
  }

/* Determine whether the given tree is an affine multivariate

In this simplification you also can remove function evol..._rec_p and inline its code in evol..._invariant_p.

Sebastian


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