diff options
author | Richard Biener <rguenther@suse.de> | 2021-09-13 16:27:41 +0200 |
---|---|---|
committer | Richard Biener <rguenther@suse.de> | 2021-09-15 12:35:54 +0200 |
commit | feebc22ba934f154aad6d8cad6cce0adf1d4610e (patch) | |
tree | 30d80a51f6522cdb02d9aa0e3ff5cc1d54813076 /gcc/ada/gcc-interface/utils.c | |
parent | e4d3643361df1145b34265c398e901498548c6e6 (diff) | |
download | gcc-feebc22ba934f154aad6d8cad6cce0adf1d4610e.zip gcc-feebc22ba934f154aad6d8cad6cce0adf1d4610e.tar.gz gcc-feebc22ba934f154aad6d8cad6cce0adf1d4610e.tar.bz2 |
Maintain (mis-)alignment info in the first element of a group
This changes us to maintain and compute (mis-)alignment info for
the first element of a group only rather than for each DR when
doing interleaving and for the earliest, first, or first in the SLP
node (or any pair or all three of those) when SLP vectorizing.
For this to work out the easiest way I have changed the accessors
DR_MISALIGNMENT and DR_TARGET_ALIGNMENT to do the indirection to
the first element rather than adjusting all callers.
2021-09-13 Richard Biener <rguenther@suse.de>
* tree-vectorizer.h (dr_misalignment): Move out of line.
(dr_target_alignment): New.
(DR_TARGET_ALIGNMENT): Wrap dr_target_alignment.
(set_dr_target_alignment): New.
(SET_DR_TARGET_ALIGNMENT): Wrap set_dr_target_alignment.
* tree-vect-data-refs.c (dr_misalignment): Compute and
return the group members misalignment.
(vect_compute_data_ref_alignment): Use SET_DR_TARGET_ALIGNMENT.
(vect_analyze_data_refs_alignment): Compute alignment only
for the first element of a DR group.
(vect_slp_analyze_node_alignment): Likewise.
Diffstat (limited to 'gcc/ada/gcc-interface/utils.c')
0 files changed, 0 insertions, 0 deletions