diff options
author | Fei Yang <felix.yang@huawei.com> | 2020-04-27 11:08:04 +0100 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2020-04-27 11:08:04 +0100 |
commit | 5328710be314dee43da8027dbff547d48b85e35e (patch) | |
tree | 0f46d7f00baf8311a781d1d411cb858da977bab2 /gcc/fortran/interface.c | |
parent | acdf733634745548c0167c40bad80e6140ac2eeb (diff) | |
download | gcc-5328710be314dee43da8027dbff547d48b85e35e.zip gcc-5328710be314dee43da8027dbff547d48b85e35e.tar.gz gcc-5328710be314dee43da8027dbff547d48b85e35e.tar.bz2 |
forwprop: Fix ICE when building an identity constructor [PR94784]
In the testcase for PR94784, we have two vectors with the same ABI identity
but with different TYPE_MODEs. It would be better to flip the assert around
so that it checks that the two vectors have equal TYPE_VECTOR_SUBPARTS and
that converting the corresponding element types is a useless_type_conversion_p.
2020-04-27 Felix Yang <felix.yang@huawei.com>
gcc/
PR tree-optimization/94784
* tree-ssa-forwprop.c (simplify_vector_constructor): Flip the
assert around so that it checks that the two vectors have equal
TYPE_VECTOR_SUBPARTS and that converting the corresponding element
types is a useless_type_conversion_p.
gcc/testsuite/
PR tree-optimization/94784
* gcc.dg/pr94784.c: New test.
Diffstat (limited to 'gcc/fortran/interface.c')
0 files changed, 0 insertions, 0 deletions