Commit 7fbb2f84 by David S. Miller Committed by David S. Miller

Cleanup redundant and unused insn attributes.

2001-09-04  David S. Miller  <davem@redhat.com>

	Cleanup redundant and unused insn attributes.
	* config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
	binary, and move.  Mark ialu as default.
	(commented out define_function_unit "alu"): Kill.
	(define_attr "use_clobbered"): Kill.
	(whole file): Kill address insn type references.  Replace
	all unary/binary/move references with ialu.
	* config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
	references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
	TYPE_IALU.

From-SVN: r45371
parent f7df2b9d
...@@ -2,6 +2,17 @@ ...@@ -2,6 +2,17 @@
* config/sparc/sparc.md (define_splits): Kill constraints. * config/sparc/sparc.md (define_splits): Kill constraints.
Cleanup redundant and unused insn attributes.
* config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
binary, and move. Mark ialu as default.
(commented out define_function_unit "alu"): Kill.
(define_attr "use_clobbered"): Kill.
(whole file): Kill address insn type references. Replace
all unary/binary/move references with ialu.
* config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
references. Replace TYPE_{UNARY,BINARY,MOVE} references with
TYPE_IALU.
2001-09-03 Jakub Jelinek <jakub@redhat.com> 2001-09-03 Jakub Jelinek <jakub@redhat.com>
* loop.c (express_from_1): Fix CONSTANT_P(a) case. * loop.c (express_from_1): Fix CONSTANT_P(a) case.
......
...@@ -7286,8 +7286,7 @@ ultrasparc_adjust_cost (insn, link, dep_insn, cost) ...@@ -7286,8 +7286,7 @@ ultrasparc_adjust_cost (insn, link, dep_insn, cost)
or the cycle after an instruction which writes any or the cycle after an instruction which writes any
integer register. Model this as cost 2 for dependent integer register. Model this as cost 2 for dependent
instructions. */ instructions. */
if ((dep_type == TYPE_IALU || dep_type == TYPE_UNARY if (dep_type == TYPE_IALU
|| dep_type == TYPE_BINARY)
&& cost < 2) && cost < 2)
return 2; return 2;
/* Otherwise check as for integer conditional moves. */ /* Otherwise check as for integer conditional moves. */
...@@ -7428,8 +7427,7 @@ ultra_code_from_mask (type_mask) ...@@ -7428,8 +7427,7 @@ ultra_code_from_mask (type_mask)
TMASK (TYPE_SIBCALL) | TMASK (TYPE_SIBCALL) |
TMASK (TYPE_UNCOND_BRANCH))) TMASK (TYPE_UNCOND_BRANCH)))
return IEU1; return IEU1;
else if (type_mask & (TMASK (TYPE_IALU) | TMASK (TYPE_BINARY) | else if (type_mask & TMASK (TYPE_IALU))
TMASK (TYPE_MOVE) | TMASK (TYPE_UNARY)))
return IEUN; return IEUN;
else if (type_mask & (TMASK (TYPE_LOAD) | TMASK (TYPE_SLOAD) | else if (type_mask & (TMASK (TYPE_LOAD) | TMASK (TYPE_SLOAD) |
TMASK (TYPE_STORE) | TMASK (TYPE_FPLOAD) | TMASK (TYPE_STORE) | TMASK (TYPE_FPLOAD) |
...@@ -7906,7 +7904,7 @@ ultrasparc_sched_reorder (dump, sched_verbose, ready, n_ready) ...@@ -7906,7 +7904,7 @@ ultrasparc_sched_reorder (dump, sched_verbose, ready, n_ready)
{ {
/* If the pipeline is (still) empty and we have any single /* If the pipeline is (still) empty and we have any single
group insns, get them out now as this is a good time. */ group insns, get them out now as this is a good time. */
rtx *ip = ultra_find_type ((TMASK (TYPE_RETURN) | TMASK (TYPE_ADDRESS) | rtx *ip = ultra_find_type ((TMASK (TYPE_RETURN) |
TMASK (TYPE_IMUL) | TMASK (TYPE_CMOVE) | TMASK (TYPE_IMUL) | TMASK (TYPE_CMOVE) |
TMASK (TYPE_MULTI) | TMASK (TYPE_MISC)), TMASK (TYPE_MULTI) | TMASK (TYPE_MISC)),
ready, this_insn); ready, this_insn);
...@@ -7960,8 +7958,7 @@ ultrasparc_sched_reorder (dump, sched_verbose, ready, n_ready) ...@@ -7960,8 +7958,7 @@ ultrasparc_sched_reorder (dump, sched_verbose, ready, n_ready)
if ((up->free_slot_mask & 0x7) != 0 if ((up->free_slot_mask & 0x7) != 0
&& up->num_ieu_insns < 2) && up->num_ieu_insns < 2)
{ {
rtx *ip = ultra_find_type ((TMASK (TYPE_IALU) | TMASK (TYPE_BINARY) | rtx *ip = ultra_find_type ((TMASK (TYPE_IALU) |
TMASK (TYPE_MOVE) | TMASK (TYPE_UNARY) |
(up->contents[IEU1] == 0 ? TMASK (TYPE_COMPARE) : 0)), (up->contents[IEU1] == 0 ? TMASK (TYPE_COMPARE) : 0)),
ready, this_insn); ready, this_insn);
if (ip) if (ip)
...@@ -7982,8 +7979,7 @@ ultrasparc_sched_reorder (dump, sched_verbose, ready, n_ready) ...@@ -7982,8 +7979,7 @@ ultrasparc_sched_reorder (dump, sched_verbose, ready, n_ready)
&& up->num_ieu_insns < 2) && up->num_ieu_insns < 2)
{ {
rtx *ip; rtx *ip;
int tmask = (TMASK (TYPE_IALU) | TMASK (TYPE_BINARY) | int tmask = TMASK (TYPE_IALU);
TMASK (TYPE_MOVE) | TMASK (TYPE_UNARY));
if (!up->contents[IEU1]) if (!up->contents[IEU1])
tmask |= TMASK (TYPE_COMPARE); tmask |= TMASK (TYPE_COMPARE);
......
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