This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Fix rtl-optimization/22258
- From: Richard Henderson <rth at redhat dot com>
- To: Joern RENNECKE <joern dot rennecke at st dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 30 Jun 2005 23:42:13 -0700
- Subject: Re: RFA: Fix rtl-optimization/22258
- References: <42C44729.1070207@st.com>
On Thu, Jun 30, 2005 at 08:25:29PM +0100, Joern RENNECKE wrote:
> + /* Disregard parts of the return value that are set later. */
> + for (p = PREV_INSN (use); p != insn; p = PREV_INSN (p))
> + {
> + set = single_set (p);
> + if (!set || !REG_P (SET_DEST (set)))
> + continue;
I really don't like you creating a specialized lifetime analyzer.
Especially one that's so blatently wrong, completely ignoring
anything that's not single-set.
Even if we decide to go with a function like you suggest, you should
use one of the existing analyzers: note_stores or propagate_one_insn.
r~