ADDRESS_COST cleanups
Jan Hubicka
hubicka@atrey.karlin.mff.cuni.cz
Thu Apr 27 03:36:00 GMT 2000
> > + Following addressing mode are affected:
> > + [base+scaleÃÂindex]
> > + [scaleÃÂindex+disp]
> > + [base+index]
> > +
> > + The first and last case may be avoidable by explicitly coding the zero in
> > + memory address, but I don't have AMD-K6 machine handy to check this
> > + theory. */
> > +
> > + if (TARGET_K6
> > + && ((!parts.disp && parts.base && parts.index && parts.scale != 1)
> > + || (parts.disp && !parts.base && parts.index && parts.scale != 1)
> > + || (!parts.disp && parts.base && parts.index && parts.scale == 1)))
>
> I thought decompose_address already looked for this and inserted
> a zero displacement as appropriate?
It is looking only for ESI addressing modes. (%esi)
These cases are quite different and the benefits differs too, so I would
rather to do some benchmarking first, and I need some K6 handy.
I have some K6 releated stuff waiting on my friend's hdd, so I need to find
time to complete all this stuff and send it.
Honza
>
>
> r~
More information about the Gcc-patches
mailing list