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 | a5ad72692370eb380e18bb54713910ed2d4a691f (patch) | |
tree | 2583dce5000c0afadc694cf73acdc354d83277ba /gcc | |
parent | 914a6ee8a52e9cf4362372f9ca123c0cf0b42790 (diff) | |
download | gcc-a5ad72692370eb380e18bb54713910ed2d4a691f.zip gcc-a5ad72692370eb380e18bb54713910ed2d4a691f.tar.gz gcc-a5ad72692370eb380e18bb54713910ed2d4a691f.tar.bz2 |
tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-vrp.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e2c8b5f..f6b156f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/tree-vrp.c b/gcc/tree-vrp.c index 0bdce59..81fda73 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); } } |