Allow VEC_PERM_EXPR folding to fail
commit88654ce63de73fc51a47e7d54070c2c0b6b2f34b
authorRichard Sandiford <richard.sandiford@linaro.org>
Thu, 4 Jan 2018 18:04:54 +0000 (4 18:04 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Thu, 4 Jan 2018 18:04:54 +0000 (4 18:04 +0000)
tree9732cb980f4e57e448cbc8c18b82318479bdde0e
parent64d620ef974744e0760111c379d53a39094442d7
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.

From-SVN: r256257
gcc/ChangeLog
gcc/tree-ssa-forwprop.c