This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Suboptimal code generation if if - conversion
- From: Richard Henderson <rth at redhat dot com>
- To: Hartmut Penner <HPENNER at de dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 9 Oct 2002 14:00:08 -0700
- Subject: Re: Suboptimal code generation if if - conversion
- References: <OF7045F1D4.07BFF3C5-ONC1256C4D.003B9806@de.ibm.com>
On Wed, Oct 09, 2002 at 12:58:29PM +0200, Hartmut Penner wrote:
> The change is done in 'noce_process_if_block', which is part of ifcvt.c.
No it isn't. While the IF-THEN-ELSE block is found in ifcvt.c,
no changes are made. At all.
And, actually, all the badness in this example is fixed by
correctly declaring F to have a void return type. When you
do that, the (clobber (reg/i:SI 2 %r2)) is no longer in the
instruction stream, and the cfg cleanup routines take care
of fixing things up as you'd like.
r~