This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Additional patch for optimization/7871
- From: Jim Wilson <wilson at specifixinc dot com>
- To: Ian Lance Taylor <ian at wasabisystems dot com>
- Cc: ebotcazou at act-europe dot fr, gcc-patches at gcc dot gnu dot org
- Date: 27 Feb 2004 17:07:11 -0800
- Subject: Re: Additional patch for optimization/7871
- References: <m3fzcwzxoa.fsf@gossamer.airs.com>
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