This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] make ifcvt try harder to use conditional moves
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Nathan Froyd <froydnj at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 20 Oct 2010 19:53:22 +0200
- Subject: Re: [PATCH] make ifcvt try harder to use conditional moves
- References: <20101018200551.GG2806@nightcrawler>
> * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
> emitting the conditional move in the inner mode of the SUBREG.
OK for mainline, modulo:
> + If we can't create new pseudos, though, don't bother. */
> + if (!can_create_pseudo_p ())
> + return NULL_RTX;
Write "if (reload_completed)" for the sake of consistency; no need to retest.
--
Eric Botcazou