Fix time/space problem when (const_int 1) occurs in conflict_list.
authorJim Wilson <wilson@cygnus.com>
Mon, 19 Jan 1998 11:16:37 +0000 (11:16 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Mon, 19 Jan 1998 11:16:37 +0000 (03:16 -0800)
* genattrtab.c (find_and_mark_used_attributes): Handle CONST_INT.
(add_values_to_cover): Revert last change (which had no ChangeLog
entry).
(simplify_with_current_value_aux): Handle CONST_INT.

From-SVN: r17421

gcc/ChangeLog
gcc/genattrtab.c

index f2abe2d..7286a0b 100644 (file)
@@ -1,3 +1,10 @@
+Mon Jan 19 11:15:38 1998  Jim Wilson  <wilson@cygnus.com>
+
+       * genattrtab.c (find_and_mark_used_attributes): Handle CONST_INT.
+       (add_values_to_cover): Revert last change (which had no ChangeLog
+       entry).
+       (simplify_with_current_value_aux): Handle CONST_INT.
+
 Mon Jan 19 10:14:55 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
 
        * unprotoize.c: Define UNPROTOIZE first, to actually take effect.
index 63d64e9..9149c12 100644 (file)
@@ -3711,6 +3711,7 @@ find_and_mark_used_attributes (exp, terms, nterms)
          MEM_VOLATILE_P (exp) = 1;
        }
     case CONST_STRING:
+    case CONST_INT:
       return 1;
 
     case IF_THEN_ELSE:
@@ -3780,7 +3781,7 @@ add_values_to_cover (dim)
     abort ();
   else if (nalt == dim->num_values)
     ; /* Ok.  */
-  else if (nalt * 2 >= dim->num_values)
+  else if (nalt * 2 < dim->num_values * 3)
     {
       /* Most all the values of the attribute are used, so add all the unused
         values.  */
@@ -3916,6 +3917,7 @@ simplify_with_current_value_aux (exp)
       else
        return true_rtx;
     case CONST_STRING:
+    case CONST_INT:
       return exp;
 
     case IF_THEN_ELSE: