OSDN Git Service

2008-03-04 Uros Bizjak <ubizjak@gmail.com>
[pf3gnuchains/gcc-fork.git] / gcc / omega.c
index 7b69300..93b5515 100644 (file)
@@ -12,7 +12,7 @@ This file is part of GCC.
 
 GCC is free software; you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free
-Software Foundation; either version 2, or (at your option) any later
+Software Foundation; either version 3, or (at your option) any later
 version.
 
 GCC is distributed in the hope that it will be useful, but WITHOUT ANY
@@ -21,9 +21,8 @@ FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 for more details.
 
 You should have received a copy of the GNU General Public License
-along with GCC; see the file COPYING.  If not, write to the Free
-Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.  */
+along with GCC; see the file COPYING3.  If not see
+<http://www.gnu.org/licenses/>.  */
 
 /* For a detailed description, see "Constraint-Based Array Dependence
    Analysis" William Pugh, David Wonnacott, TOPLAS'98 and David
@@ -1806,13 +1805,13 @@ cleanout_wildcards (omega_pb pb)
     for (i = n_vars; !omega_safe_var_p (pb, i); i--)
       if (pb->eqs[e].coef[i] != 0)
        {
-         /* i is the last non-zero non-safe variable.  */
+         /* i is the last nonzero non-safe variable.  */
 
          for (j = i - 1; !omega_safe_var_p (pb, j); j--)
            if (pb->eqs[e].coef[j] != 0)
              break;
 
-         /* j is the next non-zero non-safe variable, or points
+         /* j is the next nonzero non-safe variable, or points
             to a safe variable: it is then a wildcard variable.  */
 
          /* Clean it out.  */
@@ -2454,7 +2453,7 @@ coalesce (omega_pb pb)
 {
   int e, e2;
   int colors = 0;
-  bool *is_dead = XNEWVEC (bool, OMEGA_MAX_GEQS);
+  bool *is_dead;
   int found_something = 0;
 
   for (e = 0; e < pb->num_geqs; e++)
@@ -2464,6 +2463,8 @@ coalesce (omega_pb pb)
   if (colors < 2)
     return;
 
+  is_dead = XNEWVEC (bool, OMEGA_MAX_GEQS);
+
   for (e = 0; e < pb->num_geqs; e++)
     is_dead[e] = false;
 
@@ -3174,9 +3175,9 @@ omega_solve_eq (omega_pb pb, enum omega_result desired_res)
        if (eqn->coef[j])
          break;
 
-      /* i is the position of last non-zero coefficient,
+      /* i is the position of last nonzero coefficient,
         g is the coefficient of i,
-        j is the position of next non-zero coefficient.  */
+        j is the position of next nonzero coefficient.  */
 
       if (j == 0)
        {