vect: Use vect_relevant_for_alignment_p consistently
authorFei Yang <felix.yang@huawei.com>
Thu, 18 Jun 2020 19:11:09 +0000 (20:11 +0100)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 18 Jun 2020 19:11:09 +0000 (20:11 +0100)
commite54353a72a0fd780a2f233a057f3f8121b476192
treef0eb46a32bb3789499801d5a9b30c7118420011f
parente95395926a84a2406faefe0995295d199d595440
vect: Use vect_relevant_for_alignment_p consistently

Minor code refactorings in tree-vect-data-refs.c.  When trying loop peeling
to force alignment, call vect_relevant_for_alignment_p to filter out data
references in the loop whose alignment is irrelevant.

2020-06-18  Felix Yang  <felix.yang@huawei.com>

gcc/
* tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Call
vect_relevant_for_alignment_p to filter out data references in
the loop whose alignment is irrelevant when trying loop peeling
to force alignment.
gcc/tree-vect-data-refs.c