aboutsummaryrefslogtreecommitdiff
path: root/gcc/params.def
diff options
context:
space:
mode:
authorKeith Besaw <kbesaw@us.ibm.com>2005-09-06 10:59:58 +0000
committerIra Rosen <irar@gcc.gnu.org>2005-09-06 10:59:58 +0000
commitc12cc93047bf59f210231a102df277dad6ad2ab1 (patch)
treed212aa353f9a4c74483a300139b763af6e6840f7 /gcc/params.def
parent4fe8db686f069d34fa01cb98668163823cc38d04 (diff)
downloadgcc-c12cc93047bf59f210231a102df277dad6ad2ab1.zip
gcc-c12cc93047bf59f210231a102df277dad6ad2ab1.tar.gz
gcc-c12cc93047bf59f210231a102df277dad6ad2ab1.tar.bz2
common.opt: Add option ftree-vect-loop-version.
* common.opt: Add option ftree-vect-loop-version. * params.def: Add --param vect-max-version-checks. * doc/invoke.texi: Document ftree-vect-loop-version and --param vect-max-version-checks. * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and may_misalign_stmts and defines for accessors. * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for LOOP_VINFO_MAY_MISALIGN_STMTS. (destroy_loop_vec_info): VEC_free for LOOP_VINFO_MAY_MISALIGN_STMTS. * tree-vect-analyze.c (vect_compute_data_ref_alignment): Update documentation. (vect_update_misalignment_for_peel): New. (vect_enhance_data_refs_alignment): Update to choose loop peeling or loop versioning if appropriate for the (potentially) unaligned data references in the loop. (vect_analyze_data_refs_alignment): Remove call to vect_enhance_data_refs_alignment so the checks can be done earlier. (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment and move up call to vect_analyze_data_refs_alignment. * tree-vect-transform.c (vect_create_cond_for_align_checks): New. (vect_transform_loop): Add call to loop_version. From-SVN: r103941
Diffstat (limited to 'gcc/params.def')
-rw-r--r--gcc/params.def5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/params.def b/gcc/params.def
index a777efa..3ac4597 100644
--- a/gcc/params.def
+++ b/gcc/params.def
@@ -398,6 +398,11 @@ DEFPARAM(PARAM_SCEV_MAX_EXPR_SIZE,
"Bound on size of expressions used in the scalar evolutions analyzer",
20, 0, 0)
+DEFPARAM(PARAM_VECT_MAX_VERSION_CHECKS,
+ "vect-max-version-checks",
+ "Bound on number of runtime checks inserted by the vectorizer's loop versioning",
+ 6, 0, 0)
+
/* The product of the next two is used to decide whether or not to
use .GLOBAL_VAR. See tree-dfa.c. */
DEFPARAM(PARAM_GLOBAL_VAR_THRESHOLD,