Disable gathers for znver3 for vectors with 2 or 4 elements
authorJan Hubicka <jh@suse.cz>
Tue, 29 Mar 2022 11:59:14 +0000 (13:59 +0200)
committerJan Hubicka <jh@suse.cz>
Tue, 29 Mar 2022 11:59:14 +0000 (13:59 +0200)
commit871266756c7aa6a68e36b89d8d56e3fa593cca5b
tree94750ec4f5aa2be61f85a5381852155ab5675066
parentc5db32a143604f44672cfe312ffc6edfd5c86a4a
Disable gathers for znver3 for vectors with 2 or 4 elements

gcc/ChangeLog:

2022-03-28  Jan Hubicka  <hubicka@ucw.cz>

* config/i386/i386-builtins.cc (ix86_vectorize_builtin_gather): Test
TARGET_USE_GATHER_2PARTS and TARGET_USE_GATHER_4PARTS.
* config/i386/i386.h (TARGET_USE_GATHER_2PARTS): New macro.
(TARGET_USE_GATHER_4PARTS): New macro.
* config/i386/x86-tune.def (X86_TUNE_USE_GATHER_2PARTS): New tune
(X86_TUNE_USE_GATHER_4PARTS): New tune
gcc/config/i386/i386-builtins.cc
gcc/config/i386/i386.h
gcc/config/i386/x86-tune.def