tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
authorJames A. Morrison <phython@gcc.gnu.org>
Mon, 8 Aug 2005 04:43:23 +0000 (04:43 +0000)
committerJames A. Morrison <phython@gcc.gnu.org>
Mon, 8 Aug 2005 04:43:23 +0000 (04:43 +0000)
2005-08-07  James A. Morrison  <phython@gcc.gnu.org>

        * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
        (test_for_singularity): Use fold_build2.

From-SVN: r102844

gcc/ChangeLog
gcc/tree-vrp.c

index e2c8b5fe5592f54f3ab349d79adce756c380a24d..f6b156f127b085b3e31b2cbafceb810e1c0ad013 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
+
+       * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
+       (test_for_singularity): Use fold_build2.
+
 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
index 0bdce592b325d0fe98440c9cb1ff87ba752218ac..81fda73e7fd870321f41a87b4c28aec7e8bffbb5 100644 (file)
@@ -3566,7 +3566,7 @@ simplify_div_or_mod_using_ranges (tree stmt, tree rhs, enum tree_code rhs_code)
       if (rhs_code == TRUNC_DIV_EXPR)
        {
          t = build_int_cst (NULL_TREE, tree_log2 (op1));
-         t = build (RSHIFT_EXPR, TREE_TYPE (op0), op0, t);
+         t = build2 (RSHIFT_EXPR, TREE_TYPE (op0), op0, t);
        }
       else
        {
@@ -3652,7 +3652,7 @@ test_for_singularity (enum tree_code cond_code, tree op0,
       if (cond_code == LT_EXPR)
        {
          tree one = build_int_cst (TREE_TYPE (op0), 1);
-         max = fold (build (MINUS_EXPR, TREE_TYPE (op0), max, one));
+         max = fold_build2 (MINUS_EXPR, TREE_TYPE (op0), max, one);
        }
     }
   else if (cond_code == GE_EXPR || cond_code == GT_EXPR)
@@ -3663,7 +3663,7 @@ test_for_singularity (enum tree_code cond_code, tree op0,
       if (cond_code == GT_EXPR)
        {
          tree one = build_int_cst (TREE_TYPE (op0), 1);
-         max = fold (build (PLUS_EXPR, TREE_TYPE (op0), max, one));
+         max = fold_build2 (PLUS_EXPR, TREE_TYPE (op0), max, one);
        }
     }