Additional patch for optimization/7871

Jim Wilson wilson@specifixinc.com
Sat Feb 28 03:33:00 GMT 2004


On Fri, 2004-02-27 at 01:20, Ian Lance Taylor wrote:
> This patch avoids creating LOG_LINKS for global registers to or from
> call insns.  That seems to me to be the right approach here.  It's OK
> to have LOG_LINKS in other cases, since the compiler will have all the
> information it needs to do something.

Not creating the LOG_LINKS here means that we can't optimize a global
reg with a call insn, for instance if we load the address of a function
into a global reg and then call it.  That seems rare though, and other
parts of the compiler can still optimize this, so this doesn't seem to
be important enough to worry about.

I think this is a good solution.  The patch looks OK to me.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc-patches mailing list