This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Various gp-related mips optimisations
- From: Eric Christopher <echristo at redhat dot com>
- To: Richard Sandiford <rsandifo at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 28 May 2003 16:37:13 -0700
- Subject: Re: Various gp-related mips optimisations
- Organization:
- References: <wvnbrxoaywv.fsf@talisman.cambridge.redhat.com>
> ! /* compute_frame_size assumes that any function which uses the
> ! constant pool will need a gp. However, all constant
> ! pool references could be eliminated, in which case
> ! it is OK for flow to delete the gp load as well. */
> ! insn = get_last_insn ();
> ! for (i = 0; i < 3; i++)
> ! {
> ! REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_MAYBE_DEAD, const0_rtx,
> ! REG_NOTES (insn));
> ! insn = PREV_INSN (insn);
> ! }
> ! }
> }
Definitely don't like this block, but I think that we need it since we
can't accurately (or at all afaict) determine ahead of time whether or
not we're going to be deleting all of the constant pool references.
Anyone else see a way around this?
-eric
ps. everything else is good though.
--
Eric Christopher <echristo@redhat.com>