Commit 5830e3a0 by Jim Wilson Committed by Jim Wilson

Fix time/space problem when (const_int 1) occurs in conflict_list.

	* 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
parent 829e1aaf
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> Mon Jan 19 10:14:55 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
* unprotoize.c: Define UNPROTOIZE first, to actually take effect. * unprotoize.c: Define UNPROTOIZE first, to actually take effect.
......
...@@ -3711,6 +3711,7 @@ find_and_mark_used_attributes (exp, terms, nterms) ...@@ -3711,6 +3711,7 @@ find_and_mark_used_attributes (exp, terms, nterms)
MEM_VOLATILE_P (exp) = 1; MEM_VOLATILE_P (exp) = 1;
} }
case CONST_STRING: case CONST_STRING:
case CONST_INT:
return 1; return 1;
case IF_THEN_ELSE: case IF_THEN_ELSE:
...@@ -3780,7 +3781,7 @@ add_values_to_cover (dim) ...@@ -3780,7 +3781,7 @@ add_values_to_cover (dim)
abort (); abort ();
else if (nalt == dim->num_values) else if (nalt == dim->num_values)
; /* Ok. */ ; /* 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 /* Most all the values of the attribute are used, so add all the unused
values. */ values. */
...@@ -3916,6 +3917,7 @@ simplify_with_current_value_aux (exp) ...@@ -3916,6 +3917,7 @@ simplify_with_current_value_aux (exp)
else else
return true_rtx; return true_rtx;
case CONST_STRING: case CONST_STRING:
case CONST_INT:
return exp; return exp;
case IF_THEN_ELSE: case IF_THEN_ELSE:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment