diff options
author | Michael Matz <matz@gcc.gnu.org> | 2015-05-21 14:36:04 +0000 |
---|---|---|
committer | Michael Matz <matz@gcc.gnu.org> | 2015-05-21 14:36:04 +0000 |
commit | f2e2a985429ab708a31abf0bd3bc3df9dbbc3033 (patch) | |
tree | 0e30ba12cbe5abeb6eff428b7c9e77d9e6a0c97a /gcc/tree-vectorizer.h | |
parent | 1e43cc9461ba4f73939c94f07d2f5b305943eb29 (diff) | |
download | gcc-f2e2a985429ab708a31abf0bd3bc3df9dbbc3033.zip gcc-f2e2a985429ab708a31abf0bd3bc3df9dbbc3033.tar.gz gcc-f2e2a985429ab708a31abf0bd3bc3df9dbbc3033.tar.bz2 |
tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p to strided_p.
* tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
to strided_p.
(STMT_VINFO_STRIDE_LOAD_P): Rename to ...
(STMT_VINFO_STRIDED_P): ... this.
* tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
(vect_verify_datarefs_alignment): Likewise.
(vect_enhance_data_refs_alignment): Likewise.
(vect_analyze_data_ref_access): Likewise.
(vect_analyze_data_refs): Accept strided stores.
* tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
(vect_model_load_cost): Adjust for macro rename.
(vectorizable_mask_load_store): Likewise.
(vectorizable_load): Likewise.
(vectorizable_store): Open code strided stores.
testsuite/
* gcc.dg/vect/vect-strided-store.c: New test.
* gfortran.dg/vect/fast-math-pr37021.f90: Adjust.
* gfortran.dg/vect/fast-math-rnflow-trs2a2.f90: Adjust.
From-SVN: r223486
Diffstat (limited to 'gcc/tree-vectorizer.h')
-rw-r--r-- | gcc/tree-vectorizer.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/tree-vectorizer.h b/gcc/tree-vectorizer.h index 5a4fdbb..17e590e 100644 --- a/gcc/tree-vectorizer.h +++ b/gcc/tree-vectorizer.h @@ -646,7 +646,9 @@ typedef struct _stmt_vec_info { /* For loads only, true if this is a gather load. */ bool gather_p; - bool stride_load_p; + + /* True if this is an access with loop-invariant stride. */ + bool strided_p; /* For both loads and stores. */ bool simd_lane_access_p; @@ -664,7 +666,7 @@ typedef struct _stmt_vec_info { #define STMT_VINFO_VECTORIZABLE(S) (S)->vectorizable #define STMT_VINFO_DATA_REF(S) (S)->data_ref_info #define STMT_VINFO_GATHER_P(S) (S)->gather_p -#define STMT_VINFO_STRIDE_LOAD_P(S) (S)->stride_load_p +#define STMT_VINFO_STRIDED_P(S) (S)->strided_p #define STMT_VINFO_SIMD_LANE_ACCESS_P(S) (S)->simd_lane_access_p #define STMT_VINFO_DR_BASE_ADDRESS(S) (S)->dr_base_address |