This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Add machine_dependent_reorg2
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: law at redhat dot com
- Cc: Richard Henderson <rth at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: 25 Jun 2003 23:01:32 +0100
- Subject: Re: Add machine_dependent_reorg2
- References: <200306252140.h5PLevK4023890@speedy.slc.redhat.com>
law@redhat.com writes:
> In message <20030625213533.GB4249@redhat.com>, Richard Henderson writes:
> >On Wed, Jun 25, 2003 at 01:34:49PM -0600, law@redhat.com wrote:
> >> I haven't followed this discussion closely, but what was the original
> >> motivation behind wanting more machine dependent hooks?
> >
> >Wanting to add the required nops to the mips insn stream after dbr.
> And we can't do this like every other port during assembly output because?
"Every other port"? ;) I thought nop-inserting assemblers were
the exception rather than the rule.
But the motivation in this case is to get a better idea about
instruction alignment. There are targets for which it is more
efficient to align branch insns. And there are targets that
can only dual issue insns when the first one is 8-byte aligned.
If we knew what alignment instructions had, we could do
something like align_align_insns().
The patch that used reorg2 was this one:
http://gcc.gnu.org/ml/gcc-patches/2003-06/msg02529.html
Richard