This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Improve pattern recognizer for division by constant (PR tree-optimization/51581)
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 18 Jun 2012 16:44:21 -0700
- Subject: Re: [PATCH] Improve pattern recognizer for division by constant (PR tree-optimization/51581)
- References: <20120614205851.GF24904@tucnak.redhat.com>
On 2012-06-14 13:58, Jakub Jelinek wrote:
> + if (!supportable_widening_operation (WIDEN_MULT_EXPR, last_stmt,
> + vecwtype, vectype,
> + &dummy, &dummy, &dummy_code,
> + &dummy_code, &dummy_int, &dummy_vec))
> + return NULL;
It would be nice to be able to handle high-part multiplies as well, e.g.
VEC_WIDEN_MULT_HI_EXPR. Which is what Altivec provides, and not VEC_WIDEN_MULT.
I note that the sse pattern for <s>mul<mode>3_highpart (pmulhuw) is apparently
mis-named under this scheme.
r~