]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fixup unaligned load/store cost for znver5
authorRichard Biener <rguenther@suse.de>
Tue, 16 Jul 2024 08:45:27 +0000 (10:45 +0200)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 16 Jul 2024 08:53:17 +0000 (10:53 +0200)
commit896393791ee34ffc176c87d232dfee735db3aaab
treea6c3998c77836dc61985937d6f5d06fb120e6feb
parent75c0bf997d2808561451e62aa6b7ae7c8e32b9e9
Fixup unaligned load/store cost for znver5

Currently unaligned YMM and ZMM load and store costs are cheaper than
aligned which causes the vectorizer to purposely mis-align accesses
by adding an alignment prologue.  It looks like the unaligned costs
were simply copied from the bogus znver4 costs.  The following makes
the unaligned costs equal to the aligned costs like in the fixed znver4
version.

* config/i386/x86-tune-costs.h (znver5_cost): Update unaligned
load and store cost from the aligned costs.
gcc/config/i386/x86-tune-costs.h