Re: Generalise VEC_DUPLICATE folding for variable-length vectors

2019-07-22 Thread Jeff Law
On 7/11/19 2:06 AM, Richard Sandiford wrote: > This patch uses the constant vector encoding scheme to handle > more cases of a VEC_DUPLICATE of another vector. Duplicating > any fixed-length vector is fine, and duplicating a variable-length > vector is OK as long as that vector is also a duplicate

Generalise VEC_DUPLICATE folding for variable-length vectors

2019-07-11 Thread Richard Sandiford
This patch uses the constant vector encoding scheme to handle more cases of a VEC_DUPLICATE of another vector. Duplicating any fixed-length vector is fine, and duplicating a variable-length vector is OK as long as that vector is also a duplicate of a fixed-length sequence. Other cases fell throug