]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/119586 - aligned access to unaligned data
authorRichard Biener <rguenther@suse.de>
Wed, 2 Apr 2025 11:12:58 +0000 (13:12 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 2 Apr 2025 12:19:18 +0000 (14:19 +0200)
commit574c59cfe6e29c9e5758988b75c2e7ab6edc37da
tree440681455881cd750e5bd08caa1ee7abc98b4b0c
parente7912d4a81cf34e05c7ded70910069b691a8bb15
tree-optimization/119586 - aligned access to unaligned data

The following reverts parts of r15-8047 which assesses alignment
analysis for VMAT_STRIDED_SLP is correct by using aligned accesses
where allowed by it.  As the PR shows this analysis is still incorrect,
so revert back to assuming we got it wrong.

PR tree-optimization/119586
* tree-vect-stmts.cc (vectorizable_load): Assume we got
alignment analysis for VMAT_STRIDED_SLP wrong.
(vectorizable_store): Likewise.

* gcc.dg/vect/pr119586.c: New testcase.
gcc/testsuite/gcc.dg/vect/pr119586.c [new file with mode: 0644]
gcc/tree-vect-stmts.cc