This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Value profile based optimizations, part 1


On Fri, Jun 13, 2003 at 02:05:54PM +0200, Zdenek Dvorak wrote:
> + regset mkr_live;

Don't like the use of the global variable.

> +     SET_REGNO_REG_SET (killed, regno);

Need to iterate over HARD_REG_NREGS.

> +   mkr_live = e->dest->global_live_at_start;
> +   for (x = insn; x; x = NEXT_INSN (x))
> +     if (INSN_P (x))
> +       note_stores (PATTERN (x), mark_killed_regs, killed);

Just clear global_live_at_start from killed after this loop
to avoid the global variable.

> + 	  y = emit_insn (gen_rtx_SET (VOIDmode, to, from));

emit_move_insn, surely?


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]