]> git.ipfire.org Git - thirdparty/gcc.git/commit
Avoid premature alignment setting in vect_duplicate_ssa_name_ptr_info
authorRichard Biener <rguenther@suse.de>
Mon, 20 Sep 2021 09:20:19 +0000 (11:20 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 20 Sep 2021 09:25:18 +0000 (11:25 +0200)
commit24f99147b9264f8f7d9cfb2fa6bd431edfa252d2
tree3932745f52a365368f62e0247385d80d9ac6b5da
parentf55c8db019af13851ba92cd39086658e39800acd
Avoid premature alignment setting in vect_duplicate_ssa_name_ptr_info

This removes adjusting alignment based on the vectorized accesses
and instead keeps what was set on the original access.  The
code generating the actual accesses make sure to properly align
the vectorized accesses based on the generated pointer already
and the vectorizers alignment is always based of the desired
alignment of a vector type and thus will reset alignment to
unknown this way for example when doing strided accesses.

2021-09-20  Richard Biener  <rguenther@suse.de>

* tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
Do not compute alignment of the vectorized access here.
gcc/tree-vect-data-refs.c