Re: Allow VEC_PERM_EXPR folding to fail

2018-01-05 Thread Richard Biener
On Thu, Jan 4, 2018 at 6:46 PM, Jeff Law wrote: > On 01/04/2018 03:02 AM, Richard Sandiford wrote: >> tree-ssa-forwprop.c was asserting that a VEC_PERM_EXPR fold on three >> VECTOR_CSTs would always succeed, but it's possible for it to fail >> with variable-length vectors. >> >>

Re: Allow VEC_PERM_EXPR folding to fail

2018-01-04 Thread Jeff Law
On 01/04/2018 03:02 AM, Richard Sandiford wrote: > tree-ssa-forwprop.c was asserting that a VEC_PERM_EXPR fold on three > VECTOR_CSTs would always succeed, but it's possible for it to fail > with variable-length vectors. > > Tested on aarch64-linux-gnu, x86_64-linux-gnu and powerpc64le-linux-gnu.

Allow VEC_PERM_EXPR folding to fail

2018-01-04 Thread Richard Sandiford
tree-ssa-forwprop.c was asserting that a VEC_PERM_EXPR fold on three VECTOR_CSTs would always succeed, but it's possible for it to fail with variable-length vectors. Tested on aarch64-linux-gnu, x86_64-linux-gnu and powerpc64le-linux-gnu. Also tested by comparing the before and after assembly