OSDN Git Service

2011-06-10 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Jun 2011 12:18:55 +0000 (12:18 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 10 Jun 2011 12:18:55 +0000 (12:18 +0000)
PR bootstrap/49344
* tree-ssa-math-opts.c (convert_mult_to_fma): Use
FOR_EACH_PHI_OR_STMT_USE.

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

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

index 74b3e43..d64b513 100644 (file)
@@ -1,3 +1,9 @@
+2011-06-10  Richard Guenther  <rguenther@suse.de>
+
+       PR bootstrap/49344
+       * tree-ssa-math-opts.c (convert_mult_to_fma): Use
+       FOR_EACH_PHI_OR_STMT_USE.
+
 2011-06-10  Jan Hubicka  <jh@suse.cz>
 
        * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
index e6b5857..5b82fb0 100644 (file)
@@ -2174,7 +2174,7 @@ convert_mult_to_fma (gimple mul_stmt, tree op1, tree op2)
       if (use_code == NEGATE_EXPR)
        {
          ssa_op_iter iter;
-         tree use;
+         use_operand_p usep;
 
          result = gimple_assign_lhs (use_stmt);
 
@@ -2185,8 +2185,8 @@ convert_mult_to_fma (gimple mul_stmt, tree op1, tree op2)
            return false;
 
          /* Make sure the multiplication isn't also used on that stmt.  */
-         FOR_EACH_SSA_TREE_OPERAND (use, neguse_stmt, iter, SSA_OP_USE)
-           if (use == mul_result)
+         FOR_EACH_PHI_OR_STMT_USE (usep, neguse_stmt, iter, SSA_OP_USE)
+           if (USE_FROM_PTR (usep) == mul_result)
              return false;
 
          /* Re-validate.  */