diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2020-01-09 20:31:31 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2020-01-15 13:35:51 +0000 |
commit | 86c3a7d891f9f175d09d61f5ce163c6dc5ce681f (patch) | |
tree | 48ffe61e9634d24fcde6ee1bdf2d8423d2f431af /gcc/tree-eh.c | |
parent | affb7b66aa6e08aa19ccec2cc24d166a37d4a556 (diff) | |
download | gcc-86c3a7d891f9f175d09d61f5ce163c6dc5ce681f.zip gcc-86c3a7d891f9f175d09d61f5ce163c6dc5ce681f.tar.gz gcc-86c3a7d891f9f175d09d61f5ce163c6dc5ce681f.tar.bz2 |
Fix type mismatch in SLPed constructors
Having the "same" vector types with different modes means that we can
end up vectorising a constructor with a different mode from the lhs.
This patch adds a VIEW_CONVERT_EXPR in that case.
This showed up on existing tests when testing with fixed-length
-msve-vector-bits=128.
2020-01-15 Richard Sandiford <richard.sandiford@arm.com>
gcc/
* tree-vect-slp.c (vectorize_slp_instance_root_stmt): Use a
VIEW_CONVERT_EXPR if the vectorized constructor has a diffeent
type from the lhs.
Diffstat (limited to 'gcc/tree-eh.c')
0 files changed, 0 insertions, 0 deletions