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: [RFC, vectorizer] Allow single element vector types for vector reduction operations


On September 12, 2017 6:25:32 PM GMT+02:00, Andreas Schwab <schwab@linux-m68k.org> wrote:
>On Sep 12 2017, Richard Biener <rguenther@suse.de> wrote:
>
>> Index: gcc/tree-vect-generic.c
>> ===================================================================
>> --- gcc/tree-vect-generic.c	(revision 251997)
>> +++ gcc/tree-vect-generic.c	(working copy)
>> @@ -1638,7 +1638,11 @@ expand_vector_operations_1 (gimple_stmt_
>>    /* The signedness is determined from input argument.  */
>>    if (code == VEC_UNPACK_FLOAT_HI_EXPR
>>        || code == VEC_UNPACK_FLOAT_LO_EXPR)
>> -    type = TREE_TYPE (rhs1);
>> +    {
>> +      type = TREE_TYPE (rhs1);
>> +      /* We do not know how to scalarize those.  */
>> +      return;
>
>The assignment is surely useless.

Sure. I left it because all this needs further cleanup. 

Richard. 

>Andreas.


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