From 0d3d81525dd293e19166820d2a8f5f00a939f906 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Tue, 2 Dec 2014 08:32:54 +0100 Subject: [PATCH] alpha.c (alpha_gimple_fold_builtin): Use gimple_build_assign instead of gimple_build_assign_with_ops and swap the... * config/alpha/alpha.c (alpha_gimple_fold_builtin): Use gimple_build_assign instead of gimple_build_assign_with_ops and swap the order of first two arguments. * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin): Likewise. Remove last NULL_TREE argument. From-SVN: r218256 --- gcc/ChangeLog | 8 ++++++++ gcc/config/aarch64/aarch64-builtins.c | 21 ++++++--------------- gcc/config/alpha/alpha.c | 7 ++----- 3 files changed, 16 insertions(+), 20 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c27b1dbc330..1c7564e8475 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2014-12-02 Jakub Jelinek + + * config/alpha/alpha.c (alpha_gimple_fold_builtin): Use + gimple_build_assign instead of gimple_build_assign_with_ops and swap + the order of first two arguments. + * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin): + Likewise. Remove last NULL_TREE argument. + 2014-12-01 Segher Boessenkool PR rtl-optimization/59278 diff --git a/gcc/config/aarch64/aarch64-builtins.c b/gcc/config/aarch64/aarch64-builtins.c index db6d6c17b0f..e73620e695d 100644 --- a/gcc/config/aarch64/aarch64-builtins.c +++ b/gcc/config/aarch64/aarch64-builtins.c @@ -1322,27 +1322,18 @@ aarch64_gimple_fold_builtin (gimple_stmt_iterator *gsi) switch (fcode) { BUILTIN_VALL (UNOP, reduc_plus_scal_, 10) - new_stmt = gimple_build_assign_with_ops ( - REDUC_PLUS_EXPR, - gimple_call_lhs (stmt), - args[0], - NULL_TREE); + new_stmt = gimple_build_assign (gimple_call_lhs (stmt), + REDUC_PLUS_EXPR, args[0]); break; BUILTIN_VDQIF (UNOP, reduc_smax_scal_, 10) BUILTIN_VDQ_BHSI (UNOPU, reduc_umax_scal_, 10) - new_stmt = gimple_build_assign_with_ops ( - REDUC_MAX_EXPR, - gimple_call_lhs (stmt), - args[0], - NULL_TREE); + new_stmt = gimple_build_assign (gimple_call_lhs (stmt), + REDUC_MAX_EXPR, args[0]); break; BUILTIN_VDQIF (UNOP, reduc_smin_scal_, 10) BUILTIN_VDQ_BHSI (UNOPU, reduc_umin_scal_, 10) - new_stmt = gimple_build_assign_with_ops ( - REDUC_MIN_EXPR, - gimple_call_lhs (stmt), - args[0], - NULL_TREE); + new_stmt = gimple_build_assign (gimple_call_lhs (stmt), + REDUC_MIN_EXPR, args[0]); break; default: diff --git a/gcc/config/alpha/alpha.c b/gcc/config/alpha/alpha.c index c0eb0fc34ee..af45bb3224f 100644 --- a/gcc/config/alpha/alpha.c +++ b/gcc/config/alpha/alpha.c @@ -7224,11 +7224,8 @@ alpha_gimple_fold_builtin (gimple_stmt_iterator *gsi) arg0 = gimple_call_arg (stmt, 0); arg1 = gimple_call_arg (stmt, 1); - new_stmt - = gimple_build_assign_with_ops (MULT_HIGHPART_EXPR, - gimple_call_lhs (stmt), - arg0, - arg1); + new_stmt = gimple_build_assign (gimple_call_lhs (stmt), + MULT_HIGHPART_EXPR, arg0, arg1); break; default: break; -- 2.30.2