Add a vect_get_scalar_dr_size helper function
authorRichard Sandiford <richard.sandiford@linaro.org>
Fri, 22 Sep 2017 16:26:43 +0000 (16:26 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 22 Sep 2017 16:26:43 +0000 (16:26 +0000)
commit20bdc473ebd7176544e0c8cdf87750adc6f44a97
tree3f0a8db11d05c48f085d0206443df458f655ad52
parentdce04e57faaa33c1da286effc97943f5c9924691
Add a vect_get_scalar_dr_size helper function

This patch adds a helper function for getting the number of bytes
accessed by an unvectorised data reference, which helps when general
modes have a variable size.

2017-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* tree-vectorizer.h (vect_get_scalar_dr_size): New function.
* tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use it.
(vect_enhance_data_refs_alignment): Likewise.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r253099
gcc/ChangeLog
gcc/tree-vect-data-refs.c
gcc/tree-vectorizer.h