aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2020-05-27 11:42:35 +0200
committerRichard Biener <rguenther@suse.de>2020-05-27 14:14:11 +0200
commit764ef40ba185ef9245a209ba9260d1e50bec6934 (patch)
treecc6a9d6b486f9a3b38d6aa4dcaa3ea29becca530 /gcc
parenta5d8d86e8a72736bfd8a2ce8aa427dec896a442e (diff)
downloadgcc-764ef40ba185ef9245a209ba9260d1e50bec6934.zip
gcc-764ef40ba185ef9245a209ba9260d1e50bec6934.tar.gz
gcc-764ef40ba185ef9245a209ba9260d1e50bec6934.tar.bz2
tree-optimization/95356 - fix vectorizable_shift vector types
This makes sure to always use the same vector type for the shift operand as for the shifted operand. 2020-05-27 Richard Biener <rguenther@suse.de> PR tree-optimization/95356 * tree-vect-stmts.c (vectorizable_shift): Adjust vector type for the shift operand.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/tree-vect-stmts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c
index 225a9dc..35043ec 100644
--- a/gcc/tree-vect-stmts.c
+++ b/gcc/tree-vect-stmts.c
@@ -5791,7 +5791,7 @@ vectorizable_shift (vec_info *vinfo,
if (slp_node
&& (!vect_maybe_update_slp_op_vectype (slp_op0, vectype)
|| (!scalar_shift_arg
- && !vect_maybe_update_slp_op_vectype (slp_op1, op1_vectype))))
+ && !vect_maybe_update_slp_op_vectype (slp_op1, vectype))))
{
if (dump_enabled_p ())
dump_printf_loc (MSG_MISSED_OPTIMIZATION, vect_location,