Re: [7/n] Use consistent compatibility checks in vectorizable_shift

2019-10-30 Thread Richard Biener
On Fri, Oct 25, 2019 at 2:34 PM Richard Sandiford wrote: > > The validation phase of vectorizable_shift used TYPE_MODE to check > whether the shift amount vector was compatible with the shifted vector: > > if ((op1_vectype == NULL_TREE >|| TYPE_MODE (op1_vectype) != TYPE_MODE (ve

[7/n] Use consistent compatibility checks in vectorizable_shift

2019-10-25 Thread Richard Sandiford
The validation phase of vectorizable_shift used TYPE_MODE to check whether the shift amount vector was compatible with the shifted vector: if ((op1_vectype == NULL_TREE || TYPE_MODE (op1_vectype) != TYPE_MODE (vectype)) && (!slp_node || SLP_TREE_DEF_TYPE