diff options
author | Jakub Jelinek <jakub@redhat.com> | 2018-12-21 02:03:33 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2018-12-21 02:03:33 +0100 |
commit | 6647c1e86f3b311d906a19b85182eed010ec03cf (patch) | |
tree | ac3a594dfc72ba1a20ec2128abc1e22341bb227e | |
parent | adf778dfa162ed582fa3485c18e7cb9483303851 (diff) | |
download | gcc-6647c1e86f3b311d906a19b85182eed010ec03cf.zip gcc-6647c1e86f3b311d906a19b85182eed010ec03cf.tar.gz gcc-6647c1e86f3b311d906a19b85182eed010ec03cf.tar.bz2 |
tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Use DR_TARGET_ALIGNMENT on dr_info rather than dr.
* tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Use
DR_TARGET_ALIGNMENT on dr_info rather than dr. Spelling fixes.
From-SVN: r267318
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-vect-data-refs.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2c12ca2..6fe19d3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-12-21 Jakub Jelinek <jakub@redhat.com> + + * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Use + DR_TARGET_ALIGNMENT on dr_info rather than dr. Spelling fixes. + 2018-12-20 Joern Rennecke <joern.rennecke@riscy-ip.com> * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Don't do diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 6cd2c30..2cf31ae 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -2163,12 +2163,12 @@ vect_enhance_data_refs_alignment (loop_vec_info loop_vinfo) /* Forcing alignment in the first iteration is no good if we don't keep it across iterations. For now, just disable versioning in this case. - ?? We could actually unroll the loop to archive the required - overall step alignemnt, and forcing the alignment could be + ?? We could actually unroll the loop to achieve the required + overall step alignment, and forcing the alignment could be done by doing some iterations of the non-vectorized loop. */ if (!multiple_p (LOOP_VINFO_VECT_FACTOR (loop_vinfo) * DR_STEP_ALIGNMENT (dr), - DR_TARGET_ALIGNMENT (dr))) + DR_TARGET_ALIGNMENT (dr_info))) { do_versioning = false; break; |