tree-vect-data-refs.c (vect_enhance_data_refs_alignment): When all DRs have unknown...
authorRichard Biener <rguenther@suse.de>
Wed, 3 May 2017 11:01:06 +0000 (11:01 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 3 May 2017 11:01:06 +0000 (11:01 +0000)
commit49ab46214e9288ee1268f87ddcd64dacfd21c31d
tree49ac386194b21f2505e28121e490f1735948196b
parent8d5f521a5c09313c5c01005a69440f21bc80bc97
tree-vect-data-refs.c (vect_enhance_data_refs_alignment): When all DRs have unknown misaligned do not always peel when...

2017-05-03  Richard Biener  <rguenther@suse.de>

* tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
When all DRs have unknown misaligned do not always peel
when there is a store but apply the same costing model as if
there were only loads.

* gcc.dg/vect/costmodel/x86_64/costmodel-alignpeel.c: New testcase.

From-SVN: r247544
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-alignpeel.c [new file with mode: 0644]
gcc/tree-vect-data-refs.c