tree-optimization/113073 - amend PR112736 fix
commitaa2a48984c3d8c7a6a6da10d924e030b141b44cd
authorRichard Biener <rguenther@suse.de>
Tue, 19 Dec 2023 08:58:03 +0000 (19 09:58 +0100)
committerRichard Biener <rguenther@suse.de>
Tue, 19 Dec 2023 12:31:30 +0000 (19 13:31 +0100)
tree30a3f68084bc53d86ace049a2b0d414d56d2bf21
parent7e1c440bc84c02e67b1cf338579a3274cdc337e0
tree-optimization/113073 - amend PR112736 fix

The PR112736 testcase fails on RISC-V because the aligned exception
uses the wrong check.  The alignment support scheme can be
dr_aligned even when the access isn't aligned to the vector size
but some targets are happy with element alignment.  The following
fixes that.

PR tree-optimization/113073
* tree-vect-stmts.cc (vectorizable_load): Properly ensure
to exempt only vector-size aligned overreads.
gcc/tree-vect-stmts.cc