diff options
author | Richard Biener <rguenther@suse.de> | 2020-12-10 11:12:53 +0100 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2020-12-10 12:36:19 +0100 |
commit | 76c09f2af9d8ab9c760d860626f069d12d86f0a9 (patch) | |
tree | 8d65a235ca07924d52b8d5e7953aa44dad9c07f2 /gcc/tree-pretty-print.c | |
parent | f2a5e5f3e6d770d16ad3c48c753a952a40c09c16 (diff) | |
download | gcc-76c09f2af9d8ab9c760d860626f069d12d86f0a9.zip gcc-76c09f2af9d8ab9c760d860626f069d12d86f0a9.tar.gz gcc-76c09f2af9d8ab9c760d860626f069d12d86f0a9.tar.bz2 |
tree-optimization/98211 - fix bogus vectorization of conversion
Pattern recog incompletely handles some bool cases but we shouldn't
miscompile as a result but not vectorize. Unfortunately
vectorizable_assignment lets invalid conversions (that
vectorizable_conversion rejects) slip through. The following
rectifies that.
2020-12-10 Richard Biener <rguenther@suse.de>
PR tree-optimization/98211
* tree-vect-stmts.c (vectorizable_assignment): Disallow
invalid conversions to bool vector types.
* gcc.dg/pr98211.c: New testcase.
Diffstat (limited to 'gcc/tree-pretty-print.c')
0 files changed, 0 insertions, 0 deletions