Commit f7448d50 by Kazu Hirata Committed by Kazu Hirata

reg-stack.c (move_for_stack_reg): Remove local variable push_insn.

	* reg-stack.c (move_for_stack_reg): Remove local variable
	push_insn.
	(compare_for_stack_reg): Remove local variable flags_user.
	(convert_regs_1): Remove local variable deleted.

From-SVN: r96345
parent 70e2829d
...@@ -29,6 +29,11 @@ ...@@ -29,6 +29,11 @@
* gimplify.c (gimplify_expr): Remove local variables r0 and * gimplify.c (gimplify_expr): Remove local variables r0 and
r1. r1.
* reg-stack.c (move_for_stack_reg): Remove local variable
push_insn.
(compare_for_stack_reg): Remove local variable flags_user.
(convert_regs_1): Remove local variable deleted.
2005-03-12 Geoffrey Keating <geoffk@apple.com> 2005-03-12 Geoffrey Keating <geoffk@apple.com>
* c-lex.c (c_lex_with_flags): Add parameter to call to * c-lex.c (c_lex_with_flags): Add parameter to call to
......
...@@ -1132,11 +1132,11 @@ move_for_stack_reg (rtx insn, stack regstack, rtx pat) ...@@ -1132,11 +1132,11 @@ move_for_stack_reg (rtx insn, stack regstack, rtx pat)
available. Push the source value here if the register available. Push the source value here if the register
stack is not full, and then write the value to memory via stack is not full, and then write the value to memory via
a pop. */ a pop. */
rtx push_rtx, push_insn; rtx push_rtx;
rtx top_stack_reg = FP_MODE_REG (FIRST_STACK_REG, GET_MODE (src)); rtx top_stack_reg = FP_MODE_REG (FIRST_STACK_REG, GET_MODE (src));
push_rtx = gen_movxf (top_stack_reg, top_stack_reg); push_rtx = gen_movxf (top_stack_reg, top_stack_reg);
push_insn = emit_insn_before (push_rtx, insn); emit_insn_before (push_rtx, insn);
REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_DEAD, top_stack_reg, REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_DEAD, top_stack_reg,
REG_NOTES (insn)); REG_NOTES (insn));
} }
...@@ -1308,11 +1308,9 @@ compare_for_stack_reg (rtx insn, stack regstack, rtx pat_src) ...@@ -1308,11 +1308,9 @@ compare_for_stack_reg (rtx insn, stack regstack, rtx pat_src)
{ {
rtx *src1, *src2; rtx *src1, *src2;
rtx src1_note, src2_note; rtx src1_note, src2_note;
rtx flags_user;
src1 = get_true_reg (&XEXP (pat_src, 0)); src1 = get_true_reg (&XEXP (pat_src, 0));
src2 = get_true_reg (&XEXP (pat_src, 1)); src2 = get_true_reg (&XEXP (pat_src, 1));
flags_user = next_flags_user (insn);
/* ??? If fxch turns out to be cheaper than fstp, give priority to /* ??? If fxch turns out to be cheaper than fstp, give priority to
registers that die in this insn - move those to stack top first. */ registers that die in this insn - move those to stack top first. */
...@@ -2815,14 +2813,13 @@ convert_regs_1 (FILE *file, basic_block block) ...@@ -2815,14 +2813,13 @@ convert_regs_1 (FILE *file, basic_block block)
{ {
struct stack_def regstack; struct stack_def regstack;
block_info bi = BLOCK_INFO (block); block_info bi = BLOCK_INFO (block);
int deleted, inserted, reg; int inserted, reg;
rtx insn, next; rtx insn, next;
edge e, beste = NULL; edge e, beste = NULL;
bool control_flow_insn_deleted = false; bool control_flow_insn_deleted = false;
edge_iterator ei; edge_iterator ei;
inserted = 0; inserted = 0;
deleted = 0;
any_malformed_asm = false; any_malformed_asm = false;
/* Find the edge we will copy stack from. It should be the most frequent /* Find the edge we will copy stack from. It should be the most frequent
......
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