Commit 912eb5a4 by Steven Bosscher

reorg.c (delete_computation): Comment fixes.

	* reorg.c (delete_computation): Comment fixes.
	* caller-save.c (setup_save_areas): Idem.
	* sel-sched-dump.c (dump_lv_set): Idem.
	* rtl.def: Idem.

From-SVN: r156759
parent 244e6c5c
2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
* reorg.c (delete_computation): Comment fixes.
* caller-save.c (setup_save_areas): Idem.
* sel-sched-dump.c (dump_lv_set): Idem.
* rtl.def: Idem.
2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
* config/s390/s390.c (s390_sched_init): New function. * config/s390/s390.c (s390_sched_init): New function.
......
...@@ -549,7 +549,7 @@ setup_save_areas (void) ...@@ -549,7 +549,7 @@ setup_save_areas (void)
CLEAR_HARD_REG_SET (this_insn_sets); CLEAR_HARD_REG_SET (this_insn_sets);
note_stores (PATTERN (insn), mark_set_regs, &this_insn_sets); note_stores (PATTERN (insn), mark_set_regs, &this_insn_sets);
/* Sibcalls are considered to set the return value, /* Sibcalls are considered to set the return value,
compare flow.c:propagate_one_insn. */ compare df-scan.c:df_get_call_refs. */
if (SIBLING_CALL_P (insn) && crtl->return_rtx) if (SIBLING_CALL_P (insn) && crtl->return_rtx)
mark_set_regs (crtl->return_rtx, NULL_RTX, &this_insn_sets); mark_set_regs (crtl->return_rtx, NULL_RTX, &this_insn_sets);
......
...@@ -3253,13 +3253,10 @@ delete_prior_computation (rtx note, rtx insn) ...@@ -3253,13 +3253,10 @@ delete_prior_computation (rtx note, rtx insn)
/* Delete INSN and recursively delete insns that compute values used only /* Delete INSN and recursively delete insns that compute values used only
by INSN. This uses the REG_DEAD notes computed during flow analysis. by INSN. This uses the REG_DEAD notes computed during flow analysis.
If we are running before flow.c, we need do nothing since flow.c will
delete dead code. We also can't know if the registers being used are
dead or not at this point.
Otherwise, look at all our REG_DEAD notes. If a previous insn does Look at all our REG_DEAD notes. If a previous insn does nothing other
nothing other than set a register that dies in this insn, we can delete than set a register that dies in this insn, we can delete that insn
that insn as well. as well.
On machines with CC0, if CC0 is used in this insn, we may be able to On machines with CC0, if CC0 is used in this insn, we may be able to
delete the insn that set it. */ delete the insn that set it. */
......
...@@ -486,7 +486,7 @@ DEF_RTL_EXPR(UMAX, "umax", "ee", RTX_COMM_ARITH) ...@@ -486,7 +486,7 @@ DEF_RTL_EXPR(UMAX, "umax", "ee", RTX_COMM_ARITH)
because they can be understood from the machine-mode of the because they can be understood from the machine-mode of the
containing MEM. These operations exist in only two cases: containing MEM. These operations exist in only two cases:
1. pushes onto the stack. 1. pushes onto the stack.
2. created automatically by the life_analysis pass in flow.c. */ 2. created automatically by the auto-inc-dec pass. */
DEF_RTL_EXPR(PRE_DEC, "pre_dec", "e", RTX_AUTOINC) DEF_RTL_EXPR(PRE_DEC, "pre_dec", "e", RTX_AUTOINC)
DEF_RTL_EXPR(PRE_INC, "pre_inc", "e", RTX_AUTOINC) DEF_RTL_EXPR(PRE_INC, "pre_inc", "e", RTX_AUTOINC)
DEF_RTL_EXPR(POST_DEC, "post_dec", "e", RTX_AUTOINC) DEF_RTL_EXPR(POST_DEC, "post_dec", "e", RTX_AUTOINC)
......
...@@ -391,7 +391,7 @@ dump_lv_set (regset lv) ...@@ -391,7 +391,7 @@ dump_lv_set (regset lv)
{ {
sel_print ("{"); sel_print ("{");
/* This code was adapted from flow.c: dump_regset (). */ /* This code was adapted from cfg.c: dump_regset (). */
if (lv == NULL) if (lv == NULL)
sel_print ("nil"); sel_print ("nil");
else 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