calls.c (emit_library_call_value_1): Handle partial registers correctly when building...
[gcc.git] / gcc / tree-ssa-dom.c
index d890688b34af171b4c1ddc476047654f475070b4..888c5ee7bde7727b97e218685bd5ff544ca68c2a 100644 (file)
@@ -1,5 +1,5 @@
 /* SSA Dominator optimizations for trees
-   Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006
+   Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007
    Free Software Foundation, Inc.
    Contributed by Diego Novillo <dnovillo@redhat.com>
 
@@ -279,7 +279,7 @@ tree_ssa_dominator_optimize (void)
   /* We need to know which edges exit loops so that we can
      aggressively thread through loop headers to an exit
      edge.  */
-  loop_optimizer_init (0);
+  loop_optimizer_init (AVOID_CFG_MODIFICATIONS);
   if (current_loops)
     {
       mark_loop_exit_edges ();
@@ -1623,7 +1623,7 @@ record_equivalences_from_stmt (tree stmt, int may_optimize_p, stmt_ann_t ann)
       if (rhs)
        {
          /* Build a new statement with the RHS and LHS exchanged.  */
-         new = build2_gimple (GIMPLE_MODIFY_STMT, rhs, lhs);
+         new = build_gimple_modify_stmt (rhs, lhs);
 
          create_ssa_artificial_load_stmt (new, stmt);