This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PowerPC register and memory cost update


On Thursday, October 24, 2002, at 01:42  PM, Segher Boessenkool wrote:
On a related note, looking at scheduling dumps (from -da), it seems to me
that GCC thinks loads have latency of 2 cycles (correct) and throughput of
1 per 2 cycles (incorrect for most cpu's, and certainly for the 7400 i had
it optimize for: it can issue one load per cycle). This hurts my indirect
threaded code interpreter a lot.
It knows that throughput is 1 cycle; the numbers are correct for 7400.

Could you point me at the "guilty" part of GCC? I just don't seem to be
able to find where the issue rates are described.
In config/rs6000/rs6000.md; the "2 1" at the end are what you're looking for.
Described in md.texi.

(define_function_unit "lsu" 1 0
(and (eq_attr "type" "load")
(eq_attr "cpu" "rs64a,mpccore,ppc603,ppc604,ppc604e,ppc620,ppc630,ppc750,ppc7400"))
2 1)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]