re PR bootstrap/49344 (ICE in tree-flow-inline.h:745 while bootstrap)
authorRichard Guenther <rguenther@suse.de>
Fri, 10 Jun 2011 12:18:55 +0000 (12:18 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 10 Jun 2011 12:18:55 +0000 (12:18 +0000)
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.

From-SVN: r174902

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

index 74b3e43b05f094cb3c10baabb8e1b8f1b08972a3..d64b513128a8fb5ed6fc5369822b7a51e584ded7 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 e6b585723e9143dd4c2ae46e576101035fcc96b8..5b82fb0aa4327ff0402c4d16fc8d80b6b3756bca 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.  */