This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Improve pattern recognizer for division by constant (PR tree-optimization/51581)


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]