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]

Re: i386.md splits 1



  In message <k2ogqyfo2c.fsf@zero.aec.at>you write:
  > Note that at least for the Cyrix M6 it is generally a loss to split complex
  > instructions into simple ones (they get split into the same riscops anyways,
  > but with the complex instruction the instruction decoder has less work to
  > do). They also give a few recommendations that sound surprising for old
  > Intel optimizers, for example example that it is not worth to try to hard
  > to use registers (with costly spill code etc.) because L1 cache accesses
  > are as fast.
Interesting.  Particularly the bit about spills.  I guess if you can fit into
the L1 cache it makese sense.  I doubt running gcc itself fits in the L1 cache
or X11 or the Linux kernel, or... :-)

  > Now egcs doesn't support the Cyrix directly yet, but it is worth to keep
  > these issues in mind when changing the i386 backend. Not everything that
  > is good for Pentiums is good for other x86 CPUs too. This is the worst for
  > the P5 - a lot of the things that are good for the P5 (e.g. all the
  > stretchs to get pairing instructions) are useless or even harmful for more 
  > advanced x86 implementations.  
An excellent point.  As far as I know you're the first person to step up and
bring up Cyrix issues, if you could keep a loose eye on what we're doing it
would be appreciated.

I suspect as we do this work we'll want to conditionalize it for whatever
chip(s) it's profitable.  Not everything profitable for the Pentium is good
for the PPro, PII, 486, AMD's chips, etc etc.

There's a lot of chips in this family.  I think the right way to go is each
change is done for a particular processor.  If we find that it's profitable,
then we enable the same transformation for another chip.

This isn't unusual to how we work on other targets.  Look at the m68k port,
it conditionalizes all kinds of decisions on the various chips in the family.
It does get difficult to maintain though if not done cleanly.



jeff


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