PR tree-ssa/54295
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Aug 2012 14:13:16 +0000 (14:13 +0000)
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 20 Aug 2012 14:13:16 +0000 (14:13 +0000)
* tree-ssa-math-opts.c (is_widening_mult_rhs_p): Delete rhs_code
declaration and setter.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190534 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/tree-ssa-math-opts.c

index 13e2b4c..cfb3189 100644 (file)
@@ -1,6 +1,12 @@
 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.
index 748bf2f..c3392fb 100644 (file)
@@ -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