]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/97043 - fix latent wrong-code with SLP vectorization
authorRichard Biener <rguenther@suse.de>
Mon, 14 Sep 2020 09:25:04 +0000 (11:25 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 18 Feb 2022 08:20:51 +0000 (09:20 +0100)
commite75e5d2c41d294c4da4adfe610204ce5d97c3a4e
tree8d3acd8b1cf2e2054d2986a26bc2fd3b8a3bc5fb
parent308de43fe48321588dca9830a617b92441779429
tree-optimization/97043 - fix latent wrong-code with SLP vectorization

When the unrolling decision comes late and would have prevented
eliding a SLP load permutation we can end up generating aligned
loads when the load is in fact unaligned.  Most of the time
alignment analysis figures out the load is in fact unaligned
but that cannot be relied upon.

The following removes the SLP load permutation eliding based on
the still premature vectorization factor.

2020-09-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/97043
* tree-vect-slp.c (vect_analyze_slp_instance): Do not
elide a load permutation if the current vectorization
factor is one.

(cherry picked from commit e93428a8b056aed83a7678d4dc8272131ab671ba)
gcc/tree-vect-slp.c