Commit eb83633a by Richard Earnshaw Committed by Richard Earnshaw

re PR tree-optimization/54295 (Widening multiply-accumulate operation uses wrong value extension)

	PR tree-ssa/54295
	* tree-ssa-math-opts.c (is_widening_mult_rhs_p): Delete rhs_code
	declaration and setter.

From-SVN: r190534
parent 7ab6a828
2012-08-20 Richard Earnshaw <rearnsha@arm.com>
PR tree-ssa/54295
* tree-ssa-math-opts.c (is_widening_mult_rhs_p): Delete rhs_code
declaration and setter.
2012-08-20 Richard Earnshaw <rearnsha@arm.com>
PR tree-ssa/54295
* tree-ssa-math-opts.c (widening_mult_conversion_strippable_p):
New function.
(is_widening_mult_rhs_p): Use it.
......
......@@ -2011,14 +2011,12 @@ is_widening_mult_rhs_p (tree type, tree rhs, tree *type_out,
{
gimple stmt;
tree type1, rhs1;
enum tree_code rhs_code;
if (TREE_CODE (rhs) == SSA_NAME)
{
stmt = SSA_NAME_DEF_STMT (rhs);
if (is_gimple_assign (stmt))
{
rhs_code = gimple_assign_rhs_code (stmt);
if (! widening_mult_conversion_strippable_p (type, stmt))
rhs1 = rhs;
else
......
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