Re: [PATCH] forwprop: Fix ICE when building a VEC_PERM_EXPR [PR94683]

2020-04-21 Thread Richard Biener via Gcc-patches
On Tue, Apr 21, 2020 at 2:13 PM Richard Sandiford wrote: > > The type compatibility handling in simplify_vector_constructor is > based on the number of elements and on element type compatibility, > but that's no longer enough to ensure that two vector types are > compatible. This patch uses a VIE

[PATCH] forwprop: Fix ICE when building a VEC_PERM_EXPR [PR94683]

2020-04-21 Thread Richard Sandiford
The type compatibility handling in simplify_vector_constructor is based on the number of elements and on element type compatibility, but that's no longer enough to ensure that two vector types are compatible. This patch uses a VIEW_CONVERT_EXPR if the permutation type and result type are distinct.