This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: integer division by multiply with invariant reciprocal
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