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: Additional patch for optimization/7871


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


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