From: Richard Earnshaw Date: Mon, 20 Aug 2012 14:13:16 +0000 (+0000) Subject: re PR tree-optimization/54295 (Widening multiply-accumulate operation uses wrong... X-Git-Tag: misc/gccgo-go1_1_2~1284 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=eb83633a818fcc4c568d633d7ddbac078d2fc1fe;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 13e2b4c719e9..cfb31890b47e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-08-20 Richard Earnshaw + + 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 PR tree-ssa/54295 diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index 748bf2f1e496..c3392fb14c8b 100644 --- a/gcc/tree-ssa-math-opts.c +++ b/gcc/tree-ssa-math-opts.c @@ -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