Re: [PATCH] Fix *vec_duplicate_p (PR rtl-optimization/83682)

2018-01-05 Thread Richard Biener
On January 5, 2018 11:05:59 PM GMT+01:00, Jakub Jelinek wrote: >Hi! > >All the vec_duplicate_p uses in simplify-rtx.c assume that it returns >vector >element if it returns true, and while that is the case for CONST_VECTOR >which can't contain anything but scalars, VEC_DUPLICATE

[PATCH] Fix *vec_duplicate_p (PR rtl-optimization/83682)

2018-01-05 Thread Jakub Jelinek
Hi! All the vec_duplicate_p uses in simplify-rtx.c assume that it returns vector element if it returns true, and while that is the case for CONST_VECTOR which can't contain anything but scalars, VEC_DUPLICATE is documented: "This operation converts a scalar into a vector or a small vector into a