invoke.texi (ftree-vectorizer-verbose): New.
* doc/invoke.texi (ftree-vectorizer-verbose): New. * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch. * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer was added. * tree.h (vect_set_verbosity_level): New extern function declaration added. * tree-vectorizer.h (verbosity_levels): New enum type. * tree-vectorizer.c (vect_debug_stats): Function removed. (vect_debug_details): Likewise. (vect_verbosity_level): Global variable was defined and initialized. (vect_dump): Global variable definition. (vect_print_dump_info): New function. (vect_set_dump_settings): New function. (vect_set_verbosity_level): New function. (vectorize_loops): Add call to vect_set_dump_settings. (slpeel_make_loop_iterate_ntimes): Dump condition was changed. (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise. (slpeel_tree_peel_loop_to_edge): Likewise. (vect_analyze_offset_expr): Call to vect_print_dump_info with appropriate verbosity level instead of call to vect_debug_details or vect_debug_stats. (vect_get_base_and_offset): (vect_create_addr_base_for_vector_ref): (get_vectype_for_scalar_type): (vect_create_data_ref_ptr): (vect_init_vector): (vect_get_vec_def_for_operand): (vect_finish_stmt_generation): (vectorizable_assignment): (vectorizable_operation): (vectorizable_store): (vectorizable_load): (vect_transform_stmt): (vect_update_ivs_after_vectorizer): (vect_do_peeling_for_loop_bound): (vect_update_inits_of_drs): (vect_do_peeling_for_alignment): (vect_transform_loop): (vect_is_simple_use): (vect_analyze_operations): (vect_is_simple_iv_evolution): (vect_analyze_scalar_cycles): (vect_analyze_data_ref_dependence): (vect_analyze_data_ref_dependences): (vect_compute_data_ref_alignment): (vect_enhance_data_refs_alignment): (vect_analyze_data_refs_alignment): (vect_analyze_data_ref_access): (vect_analyze_data_ref_accesses): (vect_analyze_pointer_ref_access): (vect_get_memtag_and_dr): (vect_analyze_data_refs): (vect_mark_relevant): (vect_stmt_relevant_p): (vect_mark_stmts_to_be_vectorized): (vect_can_advance_ivs_p): (vect_get_loop_niters): (vect_analyze_loop_form): (vect_analyze_loop): (vectorize_loops): Likewise. (vect_do_peeling_for_loop_bound): Dump format slightly changed. (vect_update_inits_of_drs): (vect_do_peeling_for_alignment): (vect_transform_loop): (vect_analyze_operations): (vect_analyze_scalar_cycles): (vect_analyze_data_ref_dependences): (vect_analyze_data_refs_alignment): (vect_analyze_data_ref_accesses): (vect_analyze_data_refs): (vect_mark_stmts_to_be_vectorized): (vect_get_loop_niters): (vect_analyze_loop_form): (vect_analyze_loop): Likewise. (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr. Co-Authored-By: Dorit Naishlos <dorit@il.ibm.com> From-SVN: r94697
This commit is contained in:
parent
88ab13d651
commit
c866976a42
|
@ -1,3 +1,85 @@
|
|||
2005-02-07 Leehod Baruch <leehod@il.ibm.com>
|
||||
Dorit Naishlos <dorit@il.ibm.com>
|
||||
|
||||
* doc/invoke.texi (ftree-vectorizer-verbose): New.
|
||||
* opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
|
||||
* common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
|
||||
was added.
|
||||
* tree.h (vect_set_verbosity_level): New extern function declaration
|
||||
added.
|
||||
* tree-vectorizer.h (verbosity_levels): New enum type.
|
||||
* tree-vectorizer.c (vect_debug_stats): Function removed.
|
||||
(vect_debug_details): Likewise.
|
||||
(vect_verbosity_level): Global variable was defined and initialized.
|
||||
(vect_dump): Global variable definition.
|
||||
(vect_print_dump_info): New function.
|
||||
(vect_set_dump_settings): New function.
|
||||
(vect_set_verbosity_level): New function.
|
||||
(vectorize_loops): Add call to vect_set_dump_settings.
|
||||
|
||||
(slpeel_make_loop_iterate_ntimes): Dump condition was changed.
|
||||
(slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
|
||||
(slpeel_tree_peel_loop_to_edge): Likewise.
|
||||
|
||||
(vect_analyze_offset_expr): Call to vect_print_dump_info with
|
||||
appropriate verbosity level instead of call to vect_debug_details
|
||||
or vect_debug_stats.
|
||||
(vect_get_base_and_offset):
|
||||
(vect_create_addr_base_for_vector_ref):
|
||||
(get_vectype_for_scalar_type):
|
||||
(vect_create_data_ref_ptr):
|
||||
(vect_init_vector):
|
||||
(vect_get_vec_def_for_operand):
|
||||
(vect_finish_stmt_generation):
|
||||
(vectorizable_assignment):
|
||||
(vectorizable_operation):
|
||||
(vectorizable_store):
|
||||
(vectorizable_load):
|
||||
(vect_transform_stmt):
|
||||
(vect_update_ivs_after_vectorizer):
|
||||
(vect_do_peeling_for_loop_bound):
|
||||
(vect_update_inits_of_drs):
|
||||
(vect_do_peeling_for_alignment):
|
||||
(vect_transform_loop):
|
||||
(vect_is_simple_use):
|
||||
(vect_analyze_operations):
|
||||
(vect_is_simple_iv_evolution):
|
||||
(vect_analyze_scalar_cycles):
|
||||
(vect_analyze_data_ref_dependence):
|
||||
(vect_analyze_data_ref_dependences):
|
||||
(vect_compute_data_ref_alignment):
|
||||
(vect_enhance_data_refs_alignment):
|
||||
(vect_analyze_data_refs_alignment):
|
||||
(vect_analyze_data_ref_access):
|
||||
(vect_analyze_data_ref_accesses):
|
||||
(vect_analyze_pointer_ref_access):
|
||||
(vect_get_memtag_and_dr):
|
||||
(vect_analyze_data_refs):
|
||||
(vect_mark_relevant):
|
||||
(vect_stmt_relevant_p):
|
||||
(vect_mark_stmts_to_be_vectorized):
|
||||
(vect_can_advance_ivs_p):
|
||||
(vect_get_loop_niters):
|
||||
(vect_analyze_loop_form):
|
||||
(vect_analyze_loop):
|
||||
(vectorize_loops): Likewise.
|
||||
|
||||
(vect_do_peeling_for_loop_bound): Dump format slightly changed.
|
||||
(vect_update_inits_of_drs):
|
||||
(vect_do_peeling_for_alignment):
|
||||
(vect_transform_loop):
|
||||
(vect_analyze_operations):
|
||||
(vect_analyze_scalar_cycles):
|
||||
(vect_analyze_data_ref_dependences):
|
||||
(vect_analyze_data_refs_alignment):
|
||||
(vect_analyze_data_ref_accesses):
|
||||
(vect_analyze_data_refs):
|
||||
(vect_mark_stmts_to_be_vectorized):
|
||||
(vect_get_loop_niters):
|
||||
(vect_analyze_loop_form):
|
||||
(vect_analyze_loop): Likewise.
|
||||
(vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
|
||||
|
||||
2005-02-07 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
PR bootstrap/19796
|
||||
|
|
|
@ -916,6 +916,10 @@ ftree-vectorize
|
|||
Common Report Var(flag_tree_vectorize)
|
||||
Enable loop vectorization on trees
|
||||
|
||||
ftree-vectorizer-verbose=
|
||||
Common RejectNegative Joined
|
||||
-ftree-vectorizer-verbose=<number> Set the verbosity level of the vectorizer
|
||||
|
||||
; -fverbose-asm causes extra commentary information to be produced in
|
||||
; the generated assembly code (to make it more readable). This option
|
||||
; is generally only of use to those who actually need to read the
|
||||
|
|
|
@ -266,6 +266,7 @@ Objective-C and Objective-C++ Dialects}.
|
|||
-fdump-tree-nrv -fdump-tree-vect @gol
|
||||
-fdump-tree-sra@r{[}-@var{n}@r{]} @gol
|
||||
-fdump-tree-fre@r{[}-@var{n}@r{]} @gol
|
||||
-ftree-vectorizer-verbose=@var{n} @gol
|
||||
-feliminate-dwarf2-dups -feliminate-unused-debug-types @gol
|
||||
-feliminate-unused-debug-symbols -fmem-report -fprofile-arcs -ftree-based-profiling @gol
|
||||
-frandom-seed=@var{string} -fsched-verbose=@var{n} @gol
|
||||
|
@ -3882,6 +3883,13 @@ made by appending @file{.vect} to the source file name.
|
|||
Enable all the available tree dumps with the flags provided in this option.
|
||||
@end table
|
||||
|
||||
@item -ftree-vectorizer-verbose=@var{n}
|
||||
@opindex ftree-vectorizer-verbose
|
||||
This option controls the amount of debugging output the vectorizer prints.
|
||||
This information is written to standard error, unless @option{-fdump-tree-all}
|
||||
or @option{-fdump-tree-vect} is specified, in which case it is output to the
|
||||
usual dump listing file, @file{.vect}.
|
||||
|
||||
@item -frandom-seed=@var{string}
|
||||
@opindex frandom-string
|
||||
This option provides a seed that GCC uses when it would otherwise use
|
||||
|
|
|
@ -945,6 +945,10 @@ common_handle_option (size_t scode, const char *arg, int value)
|
|||
stack_limit_rtx = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (arg));
|
||||
break;
|
||||
|
||||
case OPT_ftree_vectorizer_verbose_:
|
||||
vect_set_verbosity_level (arg);
|
||||
break;
|
||||
|
||||
case OPT_ftls_model_:
|
||||
if (!strcmp (arg, "global-dynamic"))
|
||||
flag_tls_default = TLS_MODEL_GLOBAL_DYNAMIC;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
2005-02-07 Leehod Baruch <leehod@il.ibm.com>
|
||||
Dorit Naishlos <dorit@il.ibm.com>
|
||||
|
||||
* testsuite/gcc.dg/vect/vect.exp: Add -ftree-vectorizer-verbose=3.
|
||||
|
||||
2005-02-06 Richard Sandiford <rsandifo@redhat.com>
|
||||
|
||||
* gcc.c-torture/compile/20050206-1.c: New test.
|
||||
|
|
|
@ -23,7 +23,8 @@ load_lib gcc-dg.exp
|
|||
set DEFAULT_VECTCFLAGS ""
|
||||
|
||||
# These flags are used for all targets.
|
||||
lappend DEFAULT_VECTCFLAGS "-O2" "-ftree-vectorize" "-fdump-tree-vect-stats"
|
||||
lappend DEFAULT_VECTCFLAGS "-O2" "-ftree-vectorize" \
|
||||
"-ftree-vectorizer-verbose=3" "-fdump-tree-vect-stats"
|
||||
|
||||
# If the target system supports vector instructions, the default action
|
||||
# for a test is 'run', otherwise it's 'compile'. Save current default.
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -56,6 +56,19 @@ enum dr_alignment_support {
|
|||
dr_aligned
|
||||
};
|
||||
|
||||
/* Define verbosity levels. */
|
||||
enum verbosity_levels {
|
||||
REPORT_NONE,
|
||||
REPORT_VECTORIZED_LOOPS,
|
||||
REPORT_UNVECTORIZED_LOOPS,
|
||||
REPORT_ALIGNMENT,
|
||||
REPORT_BAD_FORM_LOOPS,
|
||||
REPORT_OUTER_LOOPS,
|
||||
REPORT_DETAILS,
|
||||
/* New verbosity levels should be added before this one. */
|
||||
MAX_VERBOSITY_LEVEL
|
||||
};
|
||||
|
||||
/*-----------------------------------------------------------------*/
|
||||
/* Info on vectorized loops. */
|
||||
/*-----------------------------------------------------------------*/
|
||||
|
|
|
@ -3917,4 +3917,7 @@ extern bool thread_through_all_blocks (void);
|
|||
/* In tree-gimple.c. */
|
||||
extern tree get_base_address (tree t);
|
||||
|
||||
/* In tree-vectorizer.c. */
|
||||
extern void vect_set_verbosity_level (const char *);
|
||||
|
||||
#endif /* GCC_TREE_H */
|
||||
|
|
Loading…
Reference in New Issue