Allow VEC_PERM_EXPR folding to fail
commit92a3e4336950ccb33b0f4fb37bc48b34592b1662
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Jan 2018 18:04:54 +0000 (4 18:04 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Jan 2018 18:04:54 +0000 (4 18:04 +0000)
tree9732cb980f4e57e448cbc8c18b82318479bdde0e
parent88d528ad39ce1fdb0ce2be78c25024202dc4c514
Allow VEC_PERM_EXPR folding to fail

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.

2017-12-22  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* tree-ssa-forwprop.c (is_combined_permutation_identity): Allow
the VEC_PERM_EXPR fold to fail.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256257 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/tree-ssa-forwprop.c