* tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200000
138bc75d-0d04-0410-961f-
82ee72b054a4
+2013-06-12 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/57537
+ * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
+ vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
+
2013-06-12 Richard Biener <rguenther@suse.de>
* data-streamer.h (streamer_write_char_stream): CSE
&& vect_handle_widen_op_by_const (last_stmt, MULT_EXPR, oprnd1,
&oprnd0, stmts, type,
&half_type0, def_stmt0))
- half_type1 = half_type0;
+ {
+ half_type1 = half_type0;
+ oprnd1 = fold_convert (half_type1, oprnd1);
+ }
else
return NULL;
}