Commit bfdeda2c by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/57537 (gcc.dg/vect/slp-widen-mult-half.c generating…

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
parent a4fa02d1
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, ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment