]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Disable X86_TUNE_AVX256_MOVE_BY_PIECES and STORE_BY_PIECES for znver1-3
authorJan Hubicka <jh@suse.cz>
Fri, 14 Apr 2023 17:18:24 +0000 (19:18 +0200)
committerJan Hubicka <jh@suse.cz>
Fri, 14 Apr 2023 17:18:24 +0000 (19:18 +0200)
I have enabled SSE moves for znver1-3 since they are performance win on this
machine too (we avoid using loops or string operations which are more costy).
However as discussed in the PR log, this triggers bug in IRA and it was decided
it is better to not backport the fix.

gcc/ChangeLog:

2023-04-14  Jan Hubicka  <hubicka@ucw.cz>

PR target/109137
* config/i386/x86-tune.def (X86_TUNE_AVX256_MOVE_BY_PIECES):
Remove znver1-3.
(X86_TUNE_AVX256_STORE_BY_PIECES): Remove znver1-3.

gcc/config/i386/x86-tune.def

index 78d815c32dbc178505126d068d2dc1155d28c948..e6b9e21250fd44bd84a0292b8cf45ebc638ee7b4 100644 (file)
@@ -545,12 +545,12 @@ DEF_TUNE (X86_TUNE_AVX512_SPLIT_REGS, "avx512_split_regs", m_ZNVER4)
 /* X86_TUNE_AVX256_MOVE_BY_PIECES: Optimize move_by_pieces with 256-bit
    AVX instructions.  */
 DEF_TUNE (X86_TUNE_AVX256_MOVE_BY_PIECES, "avx256_move_by_pieces",
-         m_CORE_AVX512 | m_ZNVER1 | m_ZNVER2 | m_ZNVER3)
+         m_CORE_AVX512)
 
 /* X86_TUNE_AVX256_STORE_BY_PIECES: Optimize store_by_pieces with 256-bit
    AVX instructions.  */
 DEF_TUNE (X86_TUNE_AVX256_STORE_BY_PIECES, "avx256_store_by_pieces",
-         m_CORE_AVX512 | m_ZNVER1 | m_ZNVER2 | m_ZNVER3)
+         m_CORE_AVX512)
 
 /* X86_TUNE_AVX512_MOVE_BY_PIECES: Optimize move_by_pieces with 512-bit
    AVX instructions.  */