RFC: integer division by multiply with invariant reciprocal

Jeffrey Law law@redhat.com
Mon Mar 26 06:26:00 GMT 2007


On Sun, 2007-03-25 at 22:24 -0700, Andrew Pinski wrote:
> On 3/25/07, Charles J. Tabony <TabonyEE@austin.rr.com> wrote:
> > > So I think that the easiest way to integrate this with the rest of the
> > > compiler is to have a target hook that emits trees to compute SHIFT, INV1
> > > and INV2.
> 
> I don't think target hooks to expand trees early is a good idea.  RTL
> is not going away, and in fact GCC's model having two IR is not unique
> to GCC, XLC uses that model also.
AMEN!
Jeff



More information about the Gcc mailing list