diff options
author | Kazu Hirata <kazu@codesourcery.com> | 2005-12-21 16:48:59 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2005-12-21 16:48:59 +0000 |
commit | 0dd4b47b7fc8c9f9296429d348ec64df5afeb35a (patch) | |
tree | 0990c6705e08d5b4c38ec5a270b8925019dc291c /gcc/tree-ssa-reassoc.c | |
parent | ad44e786b879ce503b59b9e3afd5abb821133f88 (diff) | |
download | gcc-0dd4b47b7fc8c9f9296429d348ec64df5afeb35a.zip gcc-0dd4b47b7fc8c9f9296429d348ec64df5afeb35a.tar.gz gcc-0dd4b47b7fc8c9f9296429d348ec64df5afeb35a.tar.bz2 |
tree-data-ref.c (estimate_niter_from_size_of_data): Replace fold_build2 with fold_binary.
* tree-data-ref.c (estimate_niter_from_size_of_data): Replace
fold_build2 with fold_binary.
* tree-ssa-ccp.c (visit_assignment, maybe_fold_stmt_addition):
Replace fold_build1 with fold_unary.
* tree-ssa-reassoc.c (optimize_ops_list): Replace fold_build2
with fold_binary.
From-SVN: r108913
Diffstat (limited to 'gcc/tree-ssa-reassoc.c')
-rw-r--r-- | gcc/tree-ssa-reassoc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-ssa-reassoc.c b/gcc/tree-ssa-reassoc.c index 97492b8..879e570 100644 --- a/gcc/tree-ssa-reassoc.c +++ b/gcc/tree-ssa-reassoc.c @@ -755,10 +755,10 @@ optimize_ops_list (enum tree_code opcode, && lang_hooks.types_compatible_p (TREE_TYPE (oelm1->op), TREE_TYPE (oelast->op))) { - tree folded = fold_build2 (opcode, TREE_TYPE (oelm1->op), + tree folded = fold_binary (opcode, TREE_TYPE (oelm1->op), oelm1->op, oelast->op); - if (is_gimple_min_invariant (folded)) + if (folded && is_gimple_min_invariant (folded)) { if (dump_file && (dump_flags & TDF_DETAILS)) fprintf (dump_file, "Merging constants\n"); |