diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-11-29 12:35:30 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-11-29 12:35:30 +0100 |
commit | b731b39027f635f0afa97010e803212c1133ee55 (patch) | |
tree | e3c645b51a02b878b08ab7f21402a4a2a22c7d4e /gcc/tree-vect-stmts.c | |
parent | d0e168a01625742725503a68c1ebf8b64d5f8f11 (diff) | |
download | gcc-b731b39027f635f0afa97010e803212c1133ee55.zip gcc-b731b39027f635f0afa97010e803212c1133ee55.tar.gz gcc-b731b39027f635f0afa97010e803212c1133ee55.tar.bz2 |
gimple-expr.h (create_tmp_var_raw, [...]): Add default NULL value to last argument.
* gimple-expr.h (create_tmp_var_raw, create_tmp_var,
create_tmp_reg): Add default NULL value to last argument.
* tree-ssanames.h (make_ssa_name, copy_ssa_name): Likewise.
* gimple-low.c (lower_builtin_posix_memalign): Remove NULL
last argument from create_tmp_var_raw, create_tmp_var,
create_tmp_reg, make_ssa_name and copy_ssa_name calls.
* tree-ssa-strlen.c (get_string_length): Likewise.
* tree-emutls.c (gen_emutls_addr, lower_emutls_1): Likewise.
* tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
* tree-vect-slp.c (vect_get_constant_vectors): Likewise.
* ipa-prop.c (ipa_modify_call_arguments): Likewise.
* tree-ssa-forwprop.c (simplify_rotate): Likewise.
* tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
* asan.c (build_shadow_mem_access, maybe_create_ssa_name,
maybe_cast_to_ptrmode, asan_expand_check_ifn): Likewise.
* tsan.c (instrument_expr, instrument_builtin_call,
instrument_func_entry): Likewise.
* varpool.c (add_new_static_var): Likewise.
* tree-loop-distribution.c (generate_memset_builtin): Likewise.
* gimplify.c (internal_get_tmp_var, gimplify_return_expr,
gimplify_modify_expr_to_memcpy, gimplify_modify_expr_to_memset,
gimplify_init_ctor_eval_range, gimplify_init_constructor,
gimplify_omp_atomic, gimplify_expr): Likewise.
* gimple-builder.c (build_assign, build_type_cast): Likewise.
* tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1,
slpeel_update_phi_nodes_for_guard2, slpeel_tree_peel_loop_to_edge,
vect_loop_versioning): Likewise.
* tree-if-conv.c (version_loop_for_if_conversion): Likewise.
* gimple-match-head.c (maybe_push_res_to_seq): Likewise.
* tree-vect-patterns.c (vect_handle_widen_op_by_const,
vect_recog_widen_mult_pattern, vect_operation_fits_smaller_type,
vect_recog_over_widening_pattern): Likewise.
* tree-sra.c (build_ref_for_offset, create_access_replacement):
Likewise.
* tree-cfg.c (make_blocks): Likewise.
* tree-eh.c (lower_eh_constructs_2, lower_resx, lower_eh_dispatch):
Likewise.
* tree-ssa-propagate.c (update_call_from_tree): Likewise.
* tree-complex.c (get_component_ssa_name, expand_complex_div_wide):
Likewise.
* tree-ssa-math-opts.c (build_and_insert_cast): Likewise.
* tree-tailcall.c (update_accumulator_with_ops): Likewise.
* tree-predcom.c (initialize_root_vars, initialize_root_vars_lm,
execute_load_motion, reassociate_to_the_same_stmt): Likewise.
* tree-ssa-reassoc.c (build_and_add_sum,
optimize_range_tests_to_bit_test, update_ops,
maybe_optimize_range_tests, rewrite_expr_tree, linearize_expr,
negate_value, repropagate_negates): Likewise.
* tree-vect-loop.c (vect_is_simple_reduction_1,
vect_create_epilog_for_reduction): Likewise.
* ipa-split.c (split_function): Likewise.
* tree-inline.c (remap_ssa_name, setup_one_parameter,
declare_return_variable, tree_function_versioning): Likewise.
* tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
* cfgexpand.c (update_alias_info_with_stack_vars, expand_used_vars):
Likewise.
* tree-ssa-phiopt.c (conditional_replacement, abs_replacement,
neg_replacement): Likewise.
* gimplify-me.c (force_gimple_operand_1, gimple_regimplify_operands):
Likewise.
* tree-vrp.c (simplify_truth_ops_using_ranges,
simplify_float_conversion_using_ranges,
simplify_internal_call_using_ranges): Likewise.
* tree-switch-conversion.c (emit_case_bit_tests,
build_one_array, build_arrays, gen_def_assigns): Likewise.
* gimple-fold.c (gimple_fold_builtin_memory_op,
gimple_fold_builtin_strcat, gimple_fold_call, gimple_build): Likewise.
* tree-vect-generic.c (expand_vector_divmod,
optimize_vector_constructor): Likewise.
* ubsan.c (ubsan_encode_value, ubsan_expand_null_ifn,
ubsan_expand_objsize_ifn, instrument_si_overflow,
instrument_bool_enum_load, instrument_nonnull_arg): Likewise.
* tree-outof-ssa.c (insert_backedge_copies): Likewise.
* tree-ssa-loop-manip.c (create_iv,
tree_transform_and_unroll_loop): Likewise.
* omp-low.c (scan_omp_parallel, lower_rec_simd_input_clauses,
lower_rec_input_clauses, lower_lastprivate_clauses,
expand_parallel_call, expand_omp_for_static_chunk,
expand_omp_atomic_pipeline, expand_omp_target,
maybe_add_implicit_barrier_cancel, lower_omp_single_simple,
lower_omp_critical, lower_omp_for, task_copyfn_copy_decl,
lower_depend_clauses, lower_omp_target, lower_omp_1,
ipa_simd_modify_stmt_ops, simd_clone_adjust): Likewise.
* tree-parloops.c (take_address_of, create_phi_for_local_result,
create_call_for_reduction_1, separate_decls_in_region,
create_parallel_loop): Likewise.
* graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence,
handle_scalar_deps_crossing_scop_limits): Likewise.
* trans-mem.c (lower_transaction, build_tm_load, build_tm_store,
expand_assign_tm, expand_call_tm, expand_transaction,
ipa_tm_insert_gettmclone_call): Likewise.
* tree-vect-data-refs.c (bump_vector_ptr, vect_setup_realignment):
Likewise.
* tree-vect-stmts.c (vect_init_vector, vectorizable_mask_load_store,
vectorizable_call, vectorizable_simd_clone_call,
vectorizable_conversion, vectorizable_store, permute_vec_elements,
vectorizable_load): Likewise.
c/
* c-typeck.c (convert_lvalue_to_rvalue, build_atomic_assign,
c_finish_stmt_expr): Remove NULL last argument from
create_tmp_var_raw and create_tmp_var calls.
* c-array-notation.c (fix_builtin_array_notation_fn,
build_array_notation_expr, fix_conditional_array_notations_1,
fix_array_notation_expr, fix_array_notation_call_expr): Likewise.
cp/
* cp-gimplify.c (cxx_omp_clause_apply_fn): Remove NULL last argument
from create_tmp_var calls.
c-family/
* c-common.c (convert_vector_to_pointer_for_subscript): Remove NULL
last argument from create_tmp_var_raw and create_tmp_var calls.
* cilk.c (gimplify_cilk_spawn): Likewise.
* c-omp.c (c_finish_omp_atomic): Likewise.
fortran/
* trans-openmp.c (gfc_omp_finish_clause,
gfc_trans_omp_array_reduction_or_udr, gfc_trans_omp_atomic): Remove
NULL last argument from create_tmp_var_raw and create_tmp_var calls.
From-SVN: r218181
Diffstat (limited to 'gcc/tree-vect-stmts.c')
-rw-r--r-- | gcc/tree-vect-stmts.c | 54 |
1 files changed, 26 insertions, 28 deletions
diff --git a/gcc/tree-vect-stmts.c b/gcc/tree-vect-stmts.c index 22de440..09c887c 100644 --- a/gcc/tree-vect-stmts.c +++ b/gcc/tree-vect-stmts.c @@ -1331,7 +1331,7 @@ vect_init_vector (gimple stmt, tree val, tree type, gimple_stmt_iterator *gsi) val = fold_unary (VIEW_CONVERT_EXPR, TREE_TYPE (type), val); else { - new_temp = make_ssa_name (TREE_TYPE (type), NULL); + new_temp = make_ssa_name (TREE_TYPE (type)); init_stmt = gimple_build_assign_with_ops (NOP_EXPR, new_temp, val); vect_init_vector_1 (stmt, init_stmt, gsi); @@ -1966,7 +1966,7 @@ vectorizable_mask_load_store (gimple stmt, gimple_stmt_iterator *gsi, gcc_assert (TYPE_VECTOR_SUBPARTS (TREE_TYPE (op)) == TYPE_VECTOR_SUBPARTS (idxtype)); var = vect_get_new_vect_var (idxtype, vect_simple_var, NULL); - var = make_ssa_name (var, NULL); + var = make_ssa_name (var); op = build1 (VIEW_CONVERT_EXPR, idxtype, op); new_stmt = gimple_build_assign_with_ops (VIEW_CONVERT_EXPR, var, op); @@ -1995,7 +1995,7 @@ vectorizable_mask_load_store (gimple stmt, gimple_stmt_iterator *gsi, == TYPE_VECTOR_SUBPARTS (masktype)); var = vect_get_new_vect_var (masktype, vect_simple_var, NULL); - var = make_ssa_name (var, NULL); + var = make_ssa_name (var); mask_op = build1 (VIEW_CONVERT_EXPR, masktype, mask_op); new_stmt = gimple_build_assign_with_ops (VIEW_CONVERT_EXPR, var, @@ -2017,7 +2017,7 @@ vectorizable_mask_load_store (gimple stmt, gimple_stmt_iterator *gsi, op = make_ssa_name (var, new_stmt); gimple_call_set_lhs (new_stmt, op); vect_finish_stmt_generation (stmt, new_stmt, gsi); - var = make_ssa_name (vec_dest, NULL); + var = make_ssa_name (vec_dest); op = build1 (VIEW_CONVERT_EXPR, vectype, op); new_stmt = gimple_build_assign_with_ops (VIEW_CONVERT_EXPR, var, op); @@ -2158,7 +2158,7 @@ vectorizable_mask_load_store (gimple stmt, gimple_stmt_iterator *gsi, = gimple_build_call_internal (IFN_MASK_LOAD, 3, dataref_ptr, gimple_call_arg (stmt, 1), vec_mask); - gimple_call_set_lhs (new_stmt, make_ssa_name (vec_dest, NULL)); + gimple_call_set_lhs (new_stmt, make_ssa_name (vec_dest)); vect_finish_stmt_generation (stmt, new_stmt, gsi); if (i == 0) STMT_VINFO_VEC_STMT (stmt_info) = *vec_stmt = new_stmt; @@ -2467,7 +2467,7 @@ vectorizable_call (gimple gs, gimple_stmt_iterator *gsi, gimple *vec_stmt, new_temp = make_ssa_name (new_var, init_stmt); gimple_assign_set_lhs (init_stmt, new_temp); vect_init_vector_1 (stmt, init_stmt, NULL); - new_temp = make_ssa_name (vec_dest, NULL); + new_temp = make_ssa_name (vec_dest); new_stmt = gimple_build_assign (new_temp, gimple_assign_lhs (init_stmt)); } @@ -2971,7 +2971,7 @@ vectorizable_simd_clone_call (gimple stmt, gimple_stmt_iterator *gsi, size_int (prec), bitsize_int ((m & (k - 1)) * prec)); new_stmt - = gimple_build_assign (make_ssa_name (atype, NULL), + = gimple_build_assign (make_ssa_name (atype), vec_oprnd0); vect_finish_stmt_generation (stmt, new_stmt, gsi); vargs.safe_push (gimple_assign_lhs (new_stmt)); @@ -3007,7 +3007,7 @@ vectorizable_simd_clone_call (gimple stmt, gimple_stmt_iterator *gsi, { vec_oprnd0 = build_constructor (atype, ctor_elts); new_stmt - = gimple_build_assign (make_ssa_name (atype, NULL), + = gimple_build_assign (make_ssa_name (atype), vec_oprnd0); vect_finish_stmt_generation (stmt, new_stmt, gsi); vargs.safe_push (gimple_assign_lhs (new_stmt)); @@ -3032,7 +3032,7 @@ vectorizable_simd_clone_call (gimple stmt, gimple_stmt_iterator *gsi, new_bb = gsi_insert_seq_on_edge_immediate (pe, stmts); gcc_assert (!new_bb); } - tree phi_res = copy_ssa_name (op, NULL); + tree phi_res = copy_ssa_name (op); gphi *new_phi = create_phi_node (phi_res, loop->header); set_vinfo_for_stmt (new_phi, new_stmt_vec_info (new_phi, loop_vinfo, @@ -3048,7 +3048,7 @@ vectorizable_simd_clone_call (gimple stmt, gimple_stmt_iterator *gsi, = wi::mul (bestn->simdclone->args[i].linear_step, ncopies * nunits); tree tcst = wide_int_to_tree (type, cst); - tree phi_arg = copy_ssa_name (op, NULL); + tree phi_arg = copy_ssa_name (op); new_stmt = gimple_build_assign_with_ops (code, phi_arg, phi_res, tcst); gimple_stmt_iterator si = gsi_after_labels (loop->header); @@ -3072,7 +3072,7 @@ vectorizable_simd_clone_call (gimple stmt, gimple_stmt_iterator *gsi, = wi::mul (bestn->simdclone->args[i].linear_step, j * nunits); tree tcst = wide_int_to_tree (type, cst); - new_temp = make_ssa_name (TREE_TYPE (op), NULL); + new_temp = make_ssa_name (TREE_TYPE (op)); new_stmt = gimple_build_assign_with_ops (code, new_temp, arginfo[i].op, tcst); @@ -3091,7 +3091,7 @@ vectorizable_simd_clone_call (gimple stmt, gimple_stmt_iterator *gsi, { gcc_assert (ratype || TYPE_VECTOR_SUBPARTS (rtype) == nunits); if (ratype) - new_temp = create_tmp_var (ratype, NULL); + new_temp = create_tmp_var (ratype); else if (TYPE_VECTOR_SUBPARTS (vectype) == TYPE_VECTOR_SUBPARTS (rtype)) new_temp = make_ssa_name (vec_dest, new_stmt); @@ -3123,7 +3123,7 @@ vectorizable_simd_clone_call (gimple stmt, gimple_stmt_iterator *gsi, t = build3 (BIT_FIELD_REF, vectype, new_temp, size_int (prec), bitsize_int (l * prec)); new_stmt - = gimple_build_assign (make_ssa_name (vectype, NULL), t); + = gimple_build_assign (make_ssa_name (vectype), t); vect_finish_stmt_generation (stmt, new_stmt, gsi); if (j == 0 && l == 0) STMT_VINFO_VEC_STMT (stmt_info) = *vec_stmt = new_stmt; @@ -3157,8 +3157,7 @@ vectorizable_simd_clone_call (gimple stmt, gimple_stmt_iterator *gsi, tree tem = build4 (ARRAY_REF, rtype, new_temp, size_int (m), NULL_TREE, NULL_TREE); new_stmt - = gimple_build_assign (make_ssa_name (rtype, NULL), - tem); + = gimple_build_assign (make_ssa_name (rtype), tem); vect_finish_stmt_generation (stmt, new_stmt, gsi); CONSTRUCTOR_APPEND_ELT (ret_ctor_elts, NULL_TREE, gimple_assign_lhs (new_stmt)); @@ -3174,8 +3173,7 @@ vectorizable_simd_clone_call (gimple stmt, gimple_stmt_iterator *gsi, continue; vec_oprnd0 = build_constructor (vectype, ret_ctor_elts); new_stmt - = gimple_build_assign (make_ssa_name (vec_dest, NULL), - vec_oprnd0); + = gimple_build_assign (make_ssa_name (vec_dest), vec_oprnd0); vect_finish_stmt_generation (stmt, new_stmt, gsi); if ((unsigned) j == k - 1) @@ -3192,7 +3190,7 @@ vectorizable_simd_clone_call (gimple stmt, gimple_stmt_iterator *gsi, t = build2 (MEM_REF, vectype, t, build_int_cst (TREE_TYPE (t), 0)); new_stmt - = gimple_build_assign (make_ssa_name (vec_dest, NULL), t); + = gimple_build_assign (make_ssa_name (vec_dest), t); vect_finish_stmt_generation (stmt, new_stmt, gsi); tree clobber = build_constructor (ratype, NULL); TREE_THIS_VOLATILE (clobber) = 1; @@ -3939,7 +3937,7 @@ vectorizable_conversion (gimple stmt, gimple_stmt_iterator *gsi, else { gcc_assert (TREE_CODE_LENGTH (codecvt1) == unary_op); - new_temp = make_ssa_name (vec_dest, NULL); + new_temp = make_ssa_name (vec_dest); new_stmt = gimple_build_assign_with_ops (codecvt1, new_temp, vop0); } @@ -3996,7 +3994,7 @@ vectorizable_conversion (gimple stmt, gimple_stmt_iterator *gsi, else { gcc_assert (TREE_CODE_LENGTH (codecvt1) == unary_op); - new_temp = make_ssa_name (vec_dest, NULL); + new_temp = make_ssa_name (vec_dest); new_stmt = gimple_build_assign_with_ops (codecvt1, new_temp, vop0); } @@ -5465,7 +5463,7 @@ vectorizable_store (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt, tree perm_dest = vect_create_destination_var (gimple_assign_rhs1 (stmt), vectype); - tree new_temp = make_ssa_name (perm_dest, NULL); + tree new_temp = make_ssa_name (perm_dest); /* Generate the permute statement. */ gimple perm_stmt @@ -5557,7 +5555,7 @@ permute_vec_elements (tree x, tree y, tree mask_vec, gimple stmt, gimple perm_stmt; perm_dest = vect_create_destination_var (gimple_get_lhs (stmt), vectype); - data_ref = make_ssa_name (perm_dest, NULL); + data_ref = make_ssa_name (perm_dest); /* Generate the permute statement. */ perm_stmt = gimple_build_assign_with_ops (VEC_PERM_EXPR, data_ref, @@ -5993,7 +5991,7 @@ vectorizable_load (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt, gcc_assert (TYPE_VECTOR_SUBPARTS (TREE_TYPE (op)) == TYPE_VECTOR_SUBPARTS (idxtype)); var = vect_get_new_vect_var (idxtype, vect_simple_var, NULL); - var = make_ssa_name (var, NULL); + var = make_ssa_name (var); op = build1 (VIEW_CONVERT_EXPR, idxtype, op); new_stmt = gimple_build_assign_with_ops (VIEW_CONVERT_EXPR, var, op); @@ -6012,7 +6010,7 @@ vectorizable_load (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt, op = make_ssa_name (var, new_stmt); gimple_call_set_lhs (new_stmt, op); vect_finish_stmt_generation (stmt, new_stmt, gsi); - var = make_ssa_name (vec_dest, NULL); + var = make_ssa_name (vec_dest); op = build1 (VIEW_CONVERT_EXPR, vectype, op); new_stmt = gimple_build_assign_with_ops (VIEW_CONVERT_EXPR, var, op); @@ -6118,7 +6116,7 @@ vectorizable_load (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt, NULL_TREE, true, GSI_SAME_STMT); CONSTRUCTOR_APPEND_ELT (v, NULL_TREE, newref); - newoff = copy_ssa_name (running_off, NULL); + newoff = copy_ssa_name (running_off); incr = gimple_build_assign_with_ops (POINTER_PLUS_EXPR, newoff, running_off, stride_step); vect_finish_stmt_generation (stmt, incr, gsi); @@ -6457,7 +6455,7 @@ vectorizable_load (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt, dr_explicit_realign, dataref_ptr, NULL); - ptr = copy_ssa_name (dataref_ptr, NULL); + ptr = copy_ssa_name (dataref_ptr); new_stmt = gimple_build_assign_with_ops (BIT_AND_EXPR, ptr, dataref_ptr, build_int_cst @@ -6496,7 +6494,7 @@ vectorizable_load (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt, break; } case dr_explicit_realign_optimized: - new_temp = copy_ssa_name (dataref_ptr, NULL); + new_temp = copy_ssa_name (dataref_ptr); new_stmt = gimple_build_assign_with_ops (BIT_AND_EXPR, new_temp, dataref_ptr, build_int_cst @@ -6566,7 +6564,7 @@ vectorizable_load (gimple stmt, gimple_stmt_iterator *gsi, gimple *vec_stmt, dump_gimple_stmt (MSG_NOTE, TDF_SLIM, stmt, 0); dump_printf (MSG_NOTE, "\n"); } - tree tem = copy_ssa_name (scalar_dest, NULL); + tree tem = copy_ssa_name (scalar_dest); gsi_insert_on_edge_immediate (loop_preheader_edge (loop), gimple_build_assign (tem, |