diff options
author | James A. Morrison <phython@gcc.gnu.org> | 2005-08-08 04:43:23 +0000 |
---|---|---|
committer | James A. Morrison <phython@gcc.gnu.org> | 2005-08-08 04:43:23 +0000 |
commit | 649d432fede51d185d03a134cb6e086c1d886630 (patch) | |
tree | 2583dce5000c0afadc694cf73acdc354d83277ba /gcc/tree-vrp.c | |
parent | c7759bec8b37663afb0d50d217fcf0151ebc9ec5 (diff) |
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.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@102844 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-vrp.c')
-rw-r--r-- | gcc/tree-vrp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index 0bdce592b32..81fda73e7fd 100644 --- a/gcc/tree-vrp.c +++ b/gcc/tree-vrp.c @@ -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); } } |