]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/102448 - clear copied alignment info from vect
authorRichard Biener <rguenther@suse.de>
Thu, 23 Sep 2021 08:27:01 +0000 (10:27 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 23 Sep 2021 09:17:33 +0000 (11:17 +0200)
commitc0cc62b32d95caca25a8854e0d2b6f11f5674d30
tree884f5649c42528dcdab58f422f075d5d5c4983b6
parent9ce500289a69d48cf7b2ea633e4d99565fed5a64
tree-optimization/102448 - clear copied alignment info from vect

This fixes the previous change which removed setting alignment info
from the vectorizers idea of how a pointer is being used but left
in place the copied info from DR_PTR_INFO without realizing that this
is in fact _not_ the alignment of the access but the alignment of
a base pointer contained in it.

The following makes sure to not use that info.

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

PR tree-optimization/102448
* tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info):
Clear alignment info copied from DR_PTR_INFO.
gcc/tree-vect-data-refs.c