]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/tree-vect-loop.c
tree-into-ssa.c (enum need_phi_state): Relocate from tree-flow.h.
[thirdparty/gcc.git] / gcc / tree-vect-loop.c
index baea8b7f8275b53f4a592f46df382ef71ccd66ef..638b981d5e77d0f4e1748002dd73d30006d6d8ca 100644 (file)
@@ -967,9 +967,9 @@ destroy_loop_vec_info (loop_vec_info loop_vinfo, bool clean_stmts)
                   || code == POINTER_PLUS_EXPR
                   || code == MULT_EXPR)
                  && CONSTANT_CLASS_P (gimple_assign_rhs1 (stmt)))
-               swap_tree_operands (stmt,
-                                   gimple_assign_rhs1_ptr (stmt),
-                                   gimple_assign_rhs2_ptr (stmt));
+               swap_ssa_operands (stmt,
+                                  gimple_assign_rhs1_ptr (stmt),
+                                  gimple_assign_rhs2_ptr (stmt));
            }
 
          /* Free stmt_vec_info.  */
@@ -2056,9 +2056,9 @@ vect_is_slp_reduction (loop_vec_info loop_info, gimple phi, gimple first_stmt)
                   dump_printf (MSG_NOTE, "\n");
                }
 
-             swap_tree_operands (next_stmt,
-                                 gimple_assign_rhs1_ptr (next_stmt),
-                                  gimple_assign_rhs2_ptr (next_stmt));
+             swap_ssa_operands (next_stmt,
+                                gimple_assign_rhs1_ptr (next_stmt),
+                                 gimple_assign_rhs2_ptr (next_stmt));
              update_stmt (next_stmt);
 
              if (CONSTANT_CLASS_P (gimple_assign_rhs1 (next_stmt)))
@@ -2488,8 +2488,8 @@ vect_is_simple_reduction_1 (loop_vec_info loop_info, gimple phi,
            report_vect_op (MSG_NOTE, def_stmt,
                            "detected reduction: need to swap operands: ");
 
-          swap_tree_operands (def_stmt, gimple_assign_rhs1_ptr (def_stmt),
-                             gimple_assign_rhs2_ptr (def_stmt));
+          swap_ssa_operands (def_stmt, gimple_assign_rhs1_ptr (def_stmt),
+                            gimple_assign_rhs2_ptr (def_stmt));
 
          if (CONSTANT_CLASS_P (gimple_assign_rhs1 (def_stmt)))
            LOOP_VINFO_OPERANDS_SWAPPED (loop_info) = true;