tree-ssa-pre.c (phi_translate_1): Update placement of add_to_value calls.
authorDaniel Berlin <dberlin@dberlin.org>
Wed, 9 Jul 2008 17:13:31 +0000 (17:13 +0000)
committerDaniel Berlin <dberlin@gcc.gnu.org>
Wed, 9 Jul 2008 17:13:31 +0000 (17:13 +0000)
2008-07-09  Daniel Berlin  <dberlin@dberlin.org>

* tree-ssa-pre.c (phi_translate_1): Update placement of
add_to_value calls.

From-SVN: r137665

gcc/ChangeLog
gcc/tree-ssa-pre.c

index 8fabd6d820b15784bde266e7f855475fa8405fb7..1f8e3a99ef6536c1239833f544df55e76fb10b4a 100644 (file)
@@ -1,3 +1,8 @@
+2008-07-09  Daniel Berlin  <dberlin@dberlin.org>
+
+       * tree-ssa-pre.c (phi_translate_1): Update placement of
+       add_to_value calls.
+
 2008-07-09  Anatoly Sokolov  <aesok@post.ru>
 
        * target.h (struct gcc_target): Add hard_regno_scratch_ok field.
index cbc1ca1f1e79fa77262b0b5765e59c5df78db4ec..53c3957bf03c360c07437f7a9aa4ee7930f276c6 100644 (file)
@@ -1399,8 +1399,8 @@ phi_translate_1 (pre_expr expr, bitmap_set_t set1, bitmap_set_t set2,
                if (constant != expr)
                  return constant;
                get_or_alloc_expression_id (expr);
-               add_to_value (new_val_id, expr);
              }
+           add_to_value (new_val_id, expr);
          }
        phi_trans_add (oldexpr, expr, pred);
        return expr;
@@ -1532,8 +1532,8 @@ phi_translate_1 (pre_expr expr, bitmap_set_t set1, bitmap_set_t set2,
                                                     result, new_val_id);
                PRE_EXPR_REFERENCE (expr) = newref;
                get_or_alloc_expression_id (expr);
-               add_to_value (new_val_id, expr);
              }
+           add_to_value (new_val_id, expr);
          }
        phi_trans_add (oldexpr, expr, pred);
        return expr;