diff options
author | David Malcolm <dmalcolm@redhat.com> | 2018-06-18 18:49:40 +0000 |
---|---|---|
committer | David Malcolm <dmalcolm@gcc.gnu.org> | 2018-06-18 18:49:40 +0000 |
commit | adac3a685da705d6811d4069f57e1bc73a95a957 (patch) | |
tree | f879862d9680331773611f82a26598111371d459 /gcc/tree-vect-data-refs.c | |
parent | 5d4d0be8132cb837ce075e28f14d7ef8dcc02767 (diff) | |
download | gcc-adac3a685da705d6811d4069f57e1bc73a95a957.zip gcc-adac3a685da705d6811d4069f57e1bc73a95a957.tar.gz gcc-adac3a685da705d6811d4069f57e1bc73a95a957.tar.bz2 |
Introduce DUMP_VECT_SCOPE macro
gcc/ChangeLog:
* tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
Replace dump_printf_loc call with DUMP_VECT_SCOPE.
(vect_slp_analyze_instance_dependence): Likewise.
(vect_enhance_data_refs_alignment): Likewise.
(vect_analyze_data_refs_alignment): Likewise.
(vect_slp_analyze_and_verify_instance_alignment
(vect_analyze_data_ref_accesses): Likewise.
(vect_prune_runtime_alias_test_list): Likewise.
(vect_analyze_data_refs): Likewise.
* tree-vect-loop-manip.c (vect_update_inits_of_drs): Likewise.
* tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
(vect_analyze_scalar_cycles_1): Likewise.
(vect_get_loop_niters): Likewise.
(vect_analyze_loop_form_1): Likewise.
(vect_update_vf_for_slp): Likewise.
(vect_analyze_loop_operations): Likewise.
(vect_analyze_loop): Likewise.
(vectorizable_induction): Likewise.
(vect_transform_loop): Likewise.
* tree-vect-patterns.c (vect_pattern_recog): Likewise.
* tree-vect-slp.c (vect_analyze_slp): Likewise.
(vect_make_slp_decision): Likewise.
(vect_detect_hybrid_slp): Likewise.
(vect_slp_analyze_operations): Likewise.
(vect_slp_bb): Likewise.
* tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
(vectorizable_bswap): Likewise.
(vectorizable_call): Likewise.
(vectorizable_simd_clone_call): Likewise.
(vectorizable_conversion): Likewise.
(vectorizable_assignment): Likewise.
(vectorizable_shift): Likewise.
(vectorizable_operation): Likewise.
* tree-vectorizer.h (DUMP_VECT_SCOPE): New macro.
From-SVN: r261710
Diffstat (limited to 'gcc/tree-vect-data-refs.c')
-rw-r--r-- | gcc/tree-vect-data-refs.c | 32 |
1 files changed, 8 insertions, 24 deletions
diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 3eb67c9..3e66e25 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -562,9 +562,7 @@ vect_analyze_data_ref_dependences (loop_vec_info loop_vinfo, unsigned int i; struct data_dependence_relation *ddr; - if (dump_enabled_p ()) - dump_printf_loc (MSG_NOTE, vect_location, - "=== vect_analyze_data_ref_dependences ===\n"); + DUMP_VECT_SCOPE ("vect_analyze_data_ref_dependences"); LOOP_VINFO_DDRS (loop_vinfo) .create (LOOP_VINFO_DATAREFS (loop_vinfo).length () @@ -741,9 +739,7 @@ vect_slp_analyze_node_dependences (slp_instance instance, slp_tree node, bool vect_slp_analyze_instance_dependence (slp_instance instance) { - if (dump_enabled_p ()) - dump_printf_loc (MSG_NOTE, vect_location, - "=== vect_slp_analyze_instance_dependence ===\n"); + DUMP_VECT_SCOPE ("vect_slp_analyze_instance_dependence"); /* The stores of this instance are at the root of the SLP tree. */ slp_tree store = SLP_INSTANCE_TREE (instance); @@ -1685,9 +1681,7 @@ vect_enhance_data_refs_alignment (loop_vec_info loop_vinfo) unsigned int mis, same_align_drs_max = 0; hash_table<peel_info_hasher> peeling_htab (1); - if (dump_enabled_p ()) - dump_printf_loc (MSG_NOTE, vect_location, - "=== vect_enhance_data_refs_alignment ===\n"); + DUMP_VECT_SCOPE ("vect_enhance_data_refs_alignment"); /* Reset data so we can safely be called multiple times. */ LOOP_VINFO_MAY_MISALIGN_STMTS (loop_vinfo).truncate (0); @@ -2345,9 +2339,7 @@ vect_find_same_alignment_drs (struct data_dependence_relation *ddr) bool vect_analyze_data_refs_alignment (loop_vec_info vinfo) { - if (dump_enabled_p ()) - dump_printf_loc (MSG_NOTE, vect_location, - "=== vect_analyze_data_refs_alignment ===\n"); + DUMP_VECT_SCOPE ("vect_analyze_data_refs_alignment"); /* Mark groups of data references with same alignment using data dependence information. */ @@ -2426,9 +2418,7 @@ vect_slp_analyze_and_verify_node_alignment (slp_tree node) bool vect_slp_analyze_and_verify_instance_alignment (slp_instance instance) { - if (dump_enabled_p ()) - dump_printf_loc (MSG_NOTE, vect_location, - "=== vect_slp_analyze_and_verify_instance_alignment ===\n"); + DUMP_VECT_SCOPE ("vect_slp_analyze_and_verify_instance_alignment"); slp_tree node; unsigned i; @@ -2931,9 +2921,7 @@ vect_analyze_data_ref_accesses (vec_info *vinfo) vec<data_reference_p> datarefs = vinfo->datarefs; struct data_reference *dr; - if (dump_enabled_p ()) - dump_printf_loc (MSG_NOTE, vect_location, - "=== vect_analyze_data_ref_accesses ===\n"); + DUMP_VECT_SCOPE ("vect_analyze_data_ref_accesses"); if (datarefs.is_empty ()) return true; @@ -3379,9 +3367,7 @@ vect_prune_runtime_alias_test_list (loop_vec_info loop_vinfo) unsigned int i; tree length_factor; - if (dump_enabled_p ()) - dump_printf_loc (MSG_NOTE, vect_location, - "=== vect_prune_runtime_alias_test_list ===\n"); + DUMP_VECT_SCOPE ("vect_prune_runtime_alias_test_list"); /* Step values are irrelevant for aliasing if the number of vector iterations is equal to the number of scalar iterations (which can @@ -4075,9 +4061,7 @@ vect_analyze_data_refs (vec_info *vinfo, poly_uint64 *min_vf) struct data_reference *dr; tree scalar_type; - if (dump_enabled_p ()) - dump_printf_loc (MSG_NOTE, vect_location, - "=== vect_analyze_data_refs ===\n"); + DUMP_VECT_SCOPE ("vect_analyze_data_refs"); if (loop_vec_info loop_vinfo = dyn_cast <loop_vec_info> (vinfo)) loop = LOOP_VINFO_LOOP (loop_vinfo); |