aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-12-10 13:33:12 +0100
committerRichard Biener <rguenther@suse.de>2020-12-10 13:35:20 +0100
commita1fb16e5472fded44181dd8938f2ba3cbe9844b6 (patch)
treebc2fa54a9228f0d4e640d1cf873e52c85d279a48 /gcc
parent11a0beff64f71d03fa6614a985b6a870da6cc821 (diff)
downloadgcc-a1fb16e5472fded44181dd8938f2ba3cbe9844b6.zip
gcc-a1fb16e5472fded44181dd8938f2ba3cbe9844b6.tar.gz
gcc-a1fb16e5472fded44181dd8938f2ba3cbe9844b6.tar.bz2
remove obsolete conversion handling from vectorizable_assignment
This removes an odd special-case of VECTOR_BOOLEAN_TYPE_P typed conversions from vectorizable_assignment that was obsoleted by making all integer mode VECTOR_BOOLEAN_TYPE_P types have 1-bit precision bool components with 605c2a393d3a2db8 2020-12-10 Richard Biener <rguenther@suse.de> * tree-vect-stmts.c (vectorizable_assignment): Remove special allowance of VECTOR_BOOLEAN_TYPE_P conversions.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree-vect-stmts.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c
index d3ab8aa..11737a38 100644
--- a/gcc/tree-vect-stmts.c
+++ b/gcc/tree-vect-stmts.c
@@ -5143,12 +5143,7 @@ vectorizable_assignment (vec_info *vinfo,
/* But a conversion that does not change the bit-pattern is ok. */
&& !((TYPE_PRECISION (TREE_TYPE (scalar_dest))
> TYPE_PRECISION (TREE_TYPE (op)))
- && TYPE_UNSIGNED (TREE_TYPE (op)))
- /* Conversion between boolean types of different sizes is
- a simple assignment in case their vectypes are same
- boolean vectors. */
- && (!VECTOR_BOOLEAN_TYPE_P (vectype)
- || !VECTOR_BOOLEAN_TYPE_P (vectype_in)))
+ && TYPE_UNSIGNED (TREE_TYPE (op))))
{
if (dump_enabled_p ())
dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,