mirror of git://gcc.gnu.org/git/gcc.git
re PR tree-optimization/57537 (gcc.dg/vect/slp-widen-mult-half.c generating wrong code on PowerPC64)
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. From-SVN: r200000
This commit is contained in:
parent
a4fa02d1b7
commit
bfdeda2cc6
|
|
@ -1,3 +1,9 @@
|
||||||
|
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>
|
2013-06-12 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
* data-streamer.h (streamer_write_char_stream): CSE
|
* data-streamer.h (streamer_write_char_stream): CSE
|
||||||
|
|
|
||||||
|
|
@ -640,7 +640,10 @@ vect_recog_widen_mult_pattern (vec<gimple> *stmts,
|
||||||
&& vect_handle_widen_op_by_const (last_stmt, MULT_EXPR, oprnd1,
|
&& vect_handle_widen_op_by_const (last_stmt, MULT_EXPR, oprnd1,
|
||||||
&oprnd0, stmts, type,
|
&oprnd0, stmts, type,
|
||||||
&half_type0, def_stmt0))
|
&half_type0, def_stmt0))
|
||||||
half_type1 = half_type0;
|
{
|
||||||
|
half_type1 = half_type0;
|
||||||
|
oprnd1 = fold_convert (half_type1, oprnd1);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue