|
|
44ce1d |
From 54ccc52ba3f842cd94718967465a6015a752ca47 Mon Sep 17 00:00:00 2001
|
|
|
44ce1d |
From: "Cui,Lili" <lili.cui@intel.com>
|
|
|
44ce1d |
Date: Thu, 4 Nov 2021 10:38:56 +0800
|
|
|
44ce1d |
Subject: [PATCH] x86: Update -mtune=alderlake
|
|
|
44ce1d |
MIME-Version: 1.0
|
|
|
44ce1d |
Content-Type: text/plain; charset=UTF-8
|
|
|
44ce1d |
Content-Transfer-Encoding: 8bit
|
|
|
44ce1d |
|
|
|
44ce1d |
Update mtune for alderlake, Alder Lake Intel Hybrid Technology will not support
|
|
|
44ce1d |
Intel® AVX-512. ISA features such as Intel® AVX, AVX-VNNI, Intel® AVX2, and
|
|
|
44ce1d |
UMONITOR/UMWAIT/TPAUSE are supported.
|
|
|
44ce1d |
|
|
|
44ce1d |
gcc/ChangeLog
|
|
|
44ce1d |
|
|
|
44ce1d |
* config/i386/i386-options.c (m_CORE_AVX2): Remove Alderlake
|
|
|
44ce1d |
from m_CORE_AVX2.
|
|
|
44ce1d |
(processor_cost_table): Use alderlake_cost for Alderlake.
|
|
|
44ce1d |
* config/i386/i386.c (ix86_sched_init_global): Handle Alderlake.
|
|
|
44ce1d |
* config/i386/x86-tune-costs.h (struct processor_costs): Add alderlake
|
|
|
44ce1d |
cost.
|
|
|
44ce1d |
* config/i386/x86-tune-sched.c (ix86_issue_rate): Change Alderlake
|
|
|
44ce1d |
issue rate to 4.
|
|
|
44ce1d |
(ix86_adjust_cost): Handle Alderlake.
|
|
|
44ce1d |
* config/i386/x86-tune.def (X86_TUNE_SCHEDULE): Enable for Alderlake.
|
|
|
44ce1d |
(X86_TUNE_PARTIAL_REG_DEPENDENCY): Likewise.
|
|
|
44ce1d |
(X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY): Likewise.
|
|
|
44ce1d |
(X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY): Likewise.
|
|
|
44ce1d |
(X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY): Likewise.
|
|
|
44ce1d |
(X86_TUNE_MEMORY_MISMATCH_STALL): Likewise.
|
|
|
44ce1d |
(X86_TUNE_USE_LEAVE): Likewise.
|
|
|
44ce1d |
(X86_TUNE_PUSH_MEMORY): Likewise.
|
|
|
44ce1d |
(X86_TUNE_USE_INCDEC): Likewise.
|
|
|
44ce1d |
(X86_TUNE_INTEGER_DFMODE_MOVES): Likewise.
|
|
|
44ce1d |
(X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES): Likewise.
|
|
|
44ce1d |
(X86_TUNE_USE_SAHF): Likewise.
|
|
|
44ce1d |
(X86_TUNE_USE_BT): Likewise.
|
|
|
44ce1d |
(X86_TUNE_AVOID_FALSE_DEP_FOR_BMI): Likewise.
|
|
|
44ce1d |
(X86_TUNE_ONE_IF_CONV_INSN): Likewise.
|
|
|
44ce1d |
(X86_TUNE_AVOID_MFENCE): Likewise.
|
|
|
44ce1d |
(X86_TUNE_USE_SIMODE_FIOP): Likewise.
|
|
|
44ce1d |
(X86_TUNE_EXT_80387_CONSTANTS): Likewise.
|
|
|
44ce1d |
(X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL): Likewise.
|
|
|
44ce1d |
(X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL): Likewise.
|
|
|
44ce1d |
(X86_TUNE_SSE_TYPELESS_STORES): Likewise.
|
|
|
44ce1d |
(X86_TUNE_SSE_LOAD0_BY_PXOR): Likewise.
|
|
|
44ce1d |
(X86_TUNE_AVOID_4BYTE_PREFIXES): Likewise.
|
|
|
44ce1d |
(X86_TUNE_USE_GATHER): Disable for Alderlake.
|
|
|
44ce1d |
---
|
|
|
44ce1d |
gcc/config/i386/i386-options.c | 4 +-
|
|
|
44ce1d |
gcc/config/i386/i386.c | 1 +
|
|
|
44ce1d |
gcc/config/i386/x86-tune-costs.h | 120 +++++++++++++++++++++++++++++++
|
|
|
44ce1d |
gcc/config/i386/x86-tune-sched.c | 2 +
|
|
|
44ce1d |
gcc/config/i386/x86-tune.def | 58 +++++++--------
|
|
|
44ce1d |
5 files changed, 155 insertions(+), 30 deletions(-)
|
|
|
44ce1d |
|
|
|
44ce1d |
diff --git a/gcc/config/i386/i386-options.c b/gcc/config/i386/i386-options.c
|
|
|
44ce1d |
index e7a3bd4aaea..a8cc0664f11 100644
|
|
|
44ce1d |
--- a/gcc/config/i386/i386-options.c
|
|
|
44ce1d |
+++ b/gcc/config/i386/i386-options.c
|
|
|
44ce1d |
@@ -131,7 +131,7 @@ along with GCC; see the file COPYING3. If not see
|
|
|
44ce1d |
| m_ICELAKE_CLIENT | m_ICELAKE_SERVER | m_CASCADELAKE \
|
|
|
44ce1d |
| m_TIGERLAKE | m_COOPERLAKE | m_SAPPHIRERAPIDS \
|
|
|
44ce1d |
| m_ROCKETLAKE)
|
|
|
44ce1d |
-#define m_CORE_AVX2 (m_HASWELL | m_SKYLAKE | m_ALDERLAKE | m_CORE_AVX512)
|
|
|
44ce1d |
+#define m_CORE_AVX2 (m_HASWELL | m_SKYLAKE | m_CORE_AVX512)
|
|
|
44ce1d |
#define m_CORE_ALL (m_CORE2 | m_NEHALEM | m_SANDYBRIDGE | m_CORE_AVX2)
|
|
|
44ce1d |
#define m_GOLDMONT (HOST_WIDE_INT_1U<
|
|
|
44ce1d |
#define m_GOLDMONT_PLUS (HOST_WIDE_INT_1U<
|
|
|
44ce1d |
@@ -736,7 +736,7 @@ static const struct processor_costs *processor_cost_table[] =
|
|
|
44ce1d |
&icelake_cost,
|
|
|
44ce1d |
&skylake_cost,
|
|
|
44ce1d |
&icelake_cost,
|
|
|
44ce1d |
- &icelake_cost,
|
|
|
44ce1d |
+ &alderlake_cost,
|
|
|
44ce1d |
&icelake_cost,
|
|
|
44ce1d |
&intel_cost,
|
|
|
44ce1d |
&geode_cost,
|
|
|
44ce1d |
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
|
|
|
44ce1d |
index e94efdf39fb..73c4d5115bb 100644
|
|
|
44ce1d |
--- a/gcc/config/i386/i386.c
|
|
|
44ce1d |
+++ b/gcc/config/i386/i386.c
|
|
|
44ce1d |
@@ -17014,6 +17014,7 @@ ix86_sched_init_global (FILE *, int, int)
|
|
|
44ce1d |
case PROCESSOR_SANDYBRIDGE:
|
|
|
44ce1d |
case PROCESSOR_HASWELL:
|
|
|
44ce1d |
case PROCESSOR_TREMONT:
|
|
|
44ce1d |
+ case PROCESSOR_ALDERLAKE:
|
|
|
44ce1d |
case PROCESSOR_GENERIC:
|
|
|
44ce1d |
/* Do not perform multipass scheduling for pre-reload schedule
|
|
|
44ce1d |
to save compile time. */
|
|
|
44ce1d |
diff --git a/gcc/config/i386/x86-tune-costs.h b/gcc/config/i386/x86-tune-costs.h
|
|
|
44ce1d |
index 93644be9cb3..dd5563d2e64 100644
|
|
|
44ce1d |
--- a/gcc/config/i386/x86-tune-costs.h
|
|
|
44ce1d |
+++ b/gcc/config/i386/x86-tune-costs.h
|
|
|
44ce1d |
@@ -2070,6 +2070,126 @@ struct processor_costs icelake_cost = {
|
|
|
44ce1d |
"16", /* Func alignment. */
|
|
|
44ce1d |
};
|
|
|
44ce1d |
|
|
|
44ce1d |
+/* alderlake_cost should produce code tuned for alderlake family of CPUs. */
|
|
|
44ce1d |
+static stringop_algs alderlake_memcpy[2] = {
|
|
|
44ce1d |
+ {libcall,
|
|
|
44ce1d |
+ {{256, rep_prefix_1_byte, true},
|
|
|
44ce1d |
+ {256, loop, false},
|
|
|
44ce1d |
+ {-1, libcall, false}}},
|
|
|
44ce1d |
+ {libcall,
|
|
|
44ce1d |
+ {{256, rep_prefix_1_byte, true},
|
|
|
44ce1d |
+ {256, loop, false},
|
|
|
44ce1d |
+ {-1, libcall, false}}}};
|
|
|
44ce1d |
+static stringop_algs alderlake_memset[2] = {
|
|
|
44ce1d |
+ {libcall,
|
|
|
44ce1d |
+ {{256, rep_prefix_1_byte, true},
|
|
|
44ce1d |
+ {256, loop, false},
|
|
|
44ce1d |
+ {-1, libcall, false}}},
|
|
|
44ce1d |
+ {libcall,
|
|
|
44ce1d |
+ {{256, rep_prefix_1_byte, true},
|
|
|
44ce1d |
+ {256, loop, false},
|
|
|
44ce1d |
+ {-1, libcall, false}}}};
|
|
|
44ce1d |
+static const
|
|
|
44ce1d |
+struct processor_costs alderlake_cost = {
|
|
|
44ce1d |
+ {
|
|
|
44ce1d |
+ /* Start of register allocator costs. integer->integer move cost is 2. */
|
|
|
44ce1d |
+ 6, /* cost for loading QImode using movzbl */
|
|
|
44ce1d |
+ {6, 6, 6}, /* cost of loading integer registers
|
|
|
44ce1d |
+ in QImode, HImode and SImode.
|
|
|
44ce1d |
+ Relative to reg-reg move (2). */
|
|
|
44ce1d |
+ {6, 6, 6}, /* cost of storing integer registers */
|
|
|
44ce1d |
+ 4, /* cost of reg,reg fld/fst */
|
|
|
44ce1d |
+ {6, 6, 12}, /* cost of loading fp registers
|
|
|
44ce1d |
+ in SFmode, DFmode and XFmode */
|
|
|
44ce1d |
+ {6, 6, 12}, /* cost of storing fp registers
|
|
|
44ce1d |
+ in SFmode, DFmode and XFmode */
|
|
|
44ce1d |
+ 2, /* cost of moving MMX register */
|
|
|
44ce1d |
+ {6, 6}, /* cost of loading MMX registers
|
|
|
44ce1d |
+ in SImode and DImode */
|
|
|
44ce1d |
+ {6, 6}, /* cost of storing MMX registers
|
|
|
44ce1d |
+ in SImode and DImode */
|
|
|
44ce1d |
+ 2, 3, 4, /* cost of moving XMM,YMM,ZMM register */
|
|
|
44ce1d |
+ {6, 6, 6, 10, 15}, /* cost of loading SSE registers
|
|
|
44ce1d |
+ in 32,64,128,256 and 512-bit */
|
|
|
44ce1d |
+ {6, 6, 6, 10, 15}, /* cost of storing SSE registers
|
|
|
44ce1d |
+ in 32,64,128,256 and 512-bit */
|
|
|
44ce1d |
+ 6, 6, /* SSE->integer and integer->SSE moves */
|
|
|
44ce1d |
+ 6, 6, /* mask->integer and integer->mask moves */
|
|
|
44ce1d |
+ {6, 6, 6}, /* cost of loading mask register
|
|
|
44ce1d |
+ in QImode, HImode, SImode. */
|
|
|
44ce1d |
+ {6, 6, 6}, /* cost if storing mask register
|
|
|
44ce1d |
+ in QImode, HImode, SImode. */
|
|
|
44ce1d |
+ 2, /* cost of moving mask register. */
|
|
|
44ce1d |
+ /* End of register allocator costs. */
|
|
|
44ce1d |
+ },
|
|
|
44ce1d |
+
|
|
|
44ce1d |
+ COSTS_N_INSNS (1), /* cost of an add instruction */
|
|
|
44ce1d |
+ COSTS_N_INSNS (1) + 1, /* cost of a lea instruction */
|
|
|
44ce1d |
+ COSTS_N_INSNS (1), /* variable shift costs */
|
|
|
44ce1d |
+ COSTS_N_INSNS (1), /* constant shift costs */
|
|
|
44ce1d |
+ {COSTS_N_INSNS (3), /* cost of starting multiply for QI */
|
|
|
44ce1d |
+ COSTS_N_INSNS (4), /* HI */
|
|
|
44ce1d |
+ COSTS_N_INSNS (3), /* SI */
|
|
|
44ce1d |
+ COSTS_N_INSNS (4), /* DI */
|
|
|
44ce1d |
+ COSTS_N_INSNS (4)}, /* other */
|
|
|
44ce1d |
+ 0, /* cost of multiply per each bit set */
|
|
|
44ce1d |
+ {COSTS_N_INSNS (16), /* cost of a divide/mod for QI */
|
|
|
44ce1d |
+ COSTS_N_INSNS (22), /* HI */
|
|
|
44ce1d |
+ COSTS_N_INSNS (30), /* SI */
|
|
|
44ce1d |
+ COSTS_N_INSNS (74), /* DI */
|
|
|
44ce1d |
+ COSTS_N_INSNS (74)}, /* other */
|
|
|
44ce1d |
+ COSTS_N_INSNS (1), /* cost of movsx */
|
|
|
44ce1d |
+ COSTS_N_INSNS (1), /* cost of movzx */
|
|
|
44ce1d |
+ 8, /* "large" insn */
|
|
|
44ce1d |
+ 17, /* MOVE_RATIO */
|
|
|
44ce1d |
+ 17, /* CLEAR_RATIO */
|
|
|
44ce1d |
+ {6, 6, 6}, /* cost of loading integer registers
|
|
|
44ce1d |
+ in QImode, HImode and SImode.
|
|
|
44ce1d |
+ Relative to reg-reg move (2). */
|
|
|
44ce1d |
+ {6, 6, 6}, /* cost of storing integer registers */
|
|
|
44ce1d |
+ {6, 6, 6, 10, 15}, /* cost of loading SSE register
|
|
|
44ce1d |
+ in 32bit, 64bit, 128bit, 256bit and 512bit */
|
|
|
44ce1d |
+ {6, 6, 6, 10, 15}, /* cost of storing SSE register
|
|
|
44ce1d |
+ in 32bit, 64bit, 128bit, 256bit and 512bit */
|
|
|
44ce1d |
+ {6, 6, 6, 10, 15}, /* cost of unaligned loads. */
|
|
|
44ce1d |
+ {6, 6, 6, 10, 15}, /* cost of unaligned storess. */
|
|
|
44ce1d |
+ 2, 3, 4, /* cost of moving XMM,YMM,ZMM register */
|
|
|
44ce1d |
+ 6, /* cost of moving SSE register to integer. */
|
|
|
44ce1d |
+ 18, 6, /* Gather load static, per_elt. */
|
|
|
44ce1d |
+ 18, 6, /* Gather store static, per_elt. */
|
|
|
44ce1d |
+ 32, /* size of l1 cache. */
|
|
|
44ce1d |
+ 512, /* size of l2 cache. */
|
|
|
44ce1d |
+ 64, /* size of prefetch block */
|
|
|
44ce1d |
+ 6, /* number of parallel prefetches */
|
|
|
44ce1d |
+ 3, /* Branch cost */
|
|
|
44ce1d |
+ COSTS_N_INSNS (3), /* cost of FADD and FSUB insns. */
|
|
|
44ce1d |
+ COSTS_N_INSNS (5), /* cost of FMUL instruction. */
|
|
|
44ce1d |
+ COSTS_N_INSNS (17), /* cost of FDIV instruction. */
|
|
|
44ce1d |
+ COSTS_N_INSNS (1), /* cost of FABS instruction. */
|
|
|
44ce1d |
+ COSTS_N_INSNS (1), /* cost of FCHS instruction. */
|
|
|
44ce1d |
+ COSTS_N_INSNS (14), /* cost of FSQRT instruction. */
|
|
|
44ce1d |
+
|
|
|
44ce1d |
+ COSTS_N_INSNS (1), /* cost of cheap SSE instruction. */
|
|
|
44ce1d |
+ COSTS_N_INSNS (3), /* cost of ADDSS/SD SUBSS/SD insns. */
|
|
|
44ce1d |
+ COSTS_N_INSNS (4), /* cost of MULSS instruction. */
|
|
|
44ce1d |
+ COSTS_N_INSNS (5), /* cost of MULSD instruction. */
|
|
|
44ce1d |
+ COSTS_N_INSNS (5), /* cost of FMA SS instruction. */
|
|
|
44ce1d |
+ COSTS_N_INSNS (5), /* cost of FMA SD instruction. */
|
|
|
44ce1d |
+ COSTS_N_INSNS (13), /* cost of DIVSS instruction. */
|
|
|
44ce1d |
+ COSTS_N_INSNS (17), /* cost of DIVSD instruction. */
|
|
|
44ce1d |
+ COSTS_N_INSNS (14), /* cost of SQRTSS instruction. */
|
|
|
44ce1d |
+ COSTS_N_INSNS (18), /* cost of SQRTSD instruction. */
|
|
|
44ce1d |
+ 1, 4, 3, 3, /* reassoc int, fp, vec_int, vec_fp. */
|
|
|
44ce1d |
+ alderlake_memcpy,
|
|
|
44ce1d |
+ alderlake_memset,
|
|
|
44ce1d |
+ COSTS_N_INSNS (4), /* cond_taken_branch_cost. */
|
|
|
44ce1d |
+ COSTS_N_INSNS (2), /* cond_not_taken_branch_cost. */
|
|
|
44ce1d |
+ "16:11:8", /* Loop alignment. */
|
|
|
44ce1d |
+ "16:11:8", /* Jump alignment. */
|
|
|
44ce1d |
+ "0:0:8", /* Label alignment. */
|
|
|
44ce1d |
+ "16", /* Func alignment. */
|
|
|
44ce1d |
+};
|
|
|
44ce1d |
+
|
|
|
44ce1d |
/* BTVER1 has optimized REP instruction for medium sized blocks, but for
|
|
|
44ce1d |
very small blocks it is better to use loop. For large blocks, libcall can
|
|
|
44ce1d |
do nontemporary accesses and beat inline considerably. */
|
|
|
44ce1d |
diff --git a/gcc/config/i386/x86-tune-sched.c b/gcc/config/i386/x86-tune-sched.c
|
|
|
44ce1d |
index 56ada99a450..0c149a09531 100644
|
|
|
44ce1d |
--- a/gcc/config/i386/x86-tune-sched.c
|
|
|
44ce1d |
+++ b/gcc/config/i386/x86-tune-sched.c
|
|
|
44ce1d |
@@ -72,6 +72,7 @@ ix86_issue_rate (void)
|
|
|
44ce1d |
case PROCESSOR_SANDYBRIDGE:
|
|
|
44ce1d |
case PROCESSOR_HASWELL:
|
|
|
44ce1d |
case PROCESSOR_TREMONT:
|
|
|
44ce1d |
+ case PROCESSOR_ALDERLAKE:
|
|
|
44ce1d |
case PROCESSOR_GENERIC:
|
|
|
44ce1d |
return 4;
|
|
|
44ce1d |
|
|
|
44ce1d |
@@ -431,6 +432,7 @@ ix86_adjust_cost (rtx_insn *insn, int dep_type, rtx_insn *dep_insn, int cost,
|
|
|
44ce1d |
case PROCESSOR_SANDYBRIDGE:
|
|
|
44ce1d |
case PROCESSOR_HASWELL:
|
|
|
44ce1d |
case PROCESSOR_TREMONT:
|
|
|
44ce1d |
+ case PROCESSOR_ALDERLAKE:
|
|
|
44ce1d |
case PROCESSOR_GENERIC:
|
|
|
44ce1d |
/* Stack engine allows to execute push&pop instructions in parall. */
|
|
|
44ce1d |
if ((insn_type == TYPE_PUSH || insn_type == TYPE_POP)
|
|
|
44ce1d |
diff --git a/gcc/config/i386/x86-tune.def b/gcc/config/i386/x86-tune.def
|
|
|
44ce1d |
index 58e8ead56b4..4ae0b569841 100644
|
|
|
44ce1d |
--- a/gcc/config/i386/x86-tune.def
|
|
|
44ce1d |
+++ b/gcc/config/i386/x86-tune.def
|
|
|
44ce1d |
@@ -42,7 +42,7 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_SCHEDULE, "schedule",
|
|
|
44ce1d |
m_PENT | m_LAKEMONT | m_PPRO | m_CORE_ALL | m_BONNELL | m_SILVERMONT
|
|
|
44ce1d |
| m_INTEL | m_KNL | m_KNM | m_K6_GEODE | m_AMD_MULTIPLE | m_GOLDMONT
|
|
|
44ce1d |
- | m_GOLDMONT_PLUS | m_TREMONT | m_GENERIC)
|
|
|
44ce1d |
+ | m_GOLDMONT_PLUS | m_TREMONT | m_ALDERLAKE |m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_PARTIAL_REG_DEPENDENCY: Enable more register renaming
|
|
|
44ce1d |
on modern chips. Preffer stores affecting whole integer register
|
|
|
44ce1d |
@@ -51,7 +51,7 @@ DEF_TUNE (X86_TUNE_SCHEDULE, "schedule",
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_PARTIAL_REG_DEPENDENCY, "partial_reg_dependency",
|
|
|
44ce1d |
m_P4_NOCONA | m_CORE2 | m_NEHALEM | m_SANDYBRIDGE | m_CORE_AVX2
|
|
|
44ce1d |
| m_BONNELL | m_SILVERMONT | m_GOLDMONT | m_GOLDMONT_PLUS | m_INTEL
|
|
|
44ce1d |
- | m_KNL | m_KNM | m_AMD_MULTIPLE | m_TREMONT
|
|
|
44ce1d |
+ | m_KNL | m_KNM | m_AMD_MULTIPLE | m_TREMONT | m_ALDERLAKE
|
|
|
44ce1d |
| m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY: This knob promotes all store
|
|
|
44ce1d |
@@ -62,7 +62,7 @@ DEF_TUNE (X86_TUNE_PARTIAL_REG_DEPENDENCY, "partial_reg_dependency",
|
|
|
44ce1d |
that can be partly masked by careful scheduling of moves. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY, "sse_partial_reg_dependency",
|
|
|
44ce1d |
m_PPRO | m_P4_NOCONA | m_CORE_ALL | m_BONNELL | m_AMDFAM10
|
|
|
44ce1d |
- | m_BDVER | m_ZNVER | m_TREMONT | m_GENERIC)
|
|
|
44ce1d |
+ | m_BDVER | m_ZNVER | m_TREMONT | m_ALDERLAKE | m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY: This knob avoids
|
|
|
44ce1d |
partial write to the destination in scalar SSE conversion from FP
|
|
|
44ce1d |
@@ -70,14 +70,14 @@ DEF_TUNE (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY, "sse_partial_reg_dependency",
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_SSE_PARTIAL_REG_FP_CONVERTS_DEPENDENCY,
|
|
|
44ce1d |
"sse_partial_reg_fp_converts_dependency",
|
|
|
44ce1d |
m_PPRO | m_P4_NOCONA | m_CORE_ALL | m_BONNELL | m_AMDFAM10
|
|
|
44ce1d |
- | m_BDVER | m_ZNVER | m_GENERIC)
|
|
|
44ce1d |
+ | m_BDVER | m_ZNVER | m_ALDERLAKE| m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY: This knob avoids partial
|
|
|
44ce1d |
write to the destination in scalar SSE conversion from integer to FP. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_SSE_PARTIAL_REG_CONVERTS_DEPENDENCY,
|
|
|
44ce1d |
"sse_partial_reg_converts_dependency",
|
|
|
44ce1d |
m_PPRO | m_P4_NOCONA | m_CORE_ALL | m_BONNELL | m_AMDFAM10
|
|
|
44ce1d |
- | m_BDVER | m_ZNVER | m_GENERIC)
|
|
|
44ce1d |
+ | m_BDVER | m_ZNVER | m_ALDERLAKE | m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_SSE_SPLIT_REGS: Set for machines where the type and dependencies
|
|
|
44ce1d |
are resolved on SSE register parts instead of whole registers, so we may
|
|
|
44ce1d |
@@ -103,14 +103,14 @@ DEF_TUNE (X86_TUNE_MOVX, "movx",
|
|
|
44ce1d |
m_PPRO | m_P4_NOCONA | m_CORE2 | m_NEHALEM | m_SANDYBRIDGE
|
|
|
44ce1d |
| m_BONNELL | m_SILVERMONT | m_GOLDMONT | m_KNL | m_KNM | m_INTEL
|
|
|
44ce1d |
| m_GOLDMONT_PLUS | m_GEODE | m_AMD_MULTIPLE
|
|
|
44ce1d |
- | m_CORE_AVX2 | m_TREMONT | m_GENERIC)
|
|
|
44ce1d |
+ | m_CORE_AVX2 | m_TREMONT | m_ALDERLAKE | m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_MEMORY_MISMATCH_STALL: Avoid partial stores that are followed by
|
|
|
44ce1d |
full sized loads. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_MEMORY_MISMATCH_STALL, "memory_mismatch_stall",
|
|
|
44ce1d |
m_P4_NOCONA | m_CORE_ALL | m_BONNELL | m_SILVERMONT | m_INTEL
|
|
|
44ce1d |
| m_KNL | m_KNM | m_GOLDMONT | m_GOLDMONT_PLUS | m_AMD_MULTIPLE
|
|
|
44ce1d |
- | m_TREMONT | m_GENERIC)
|
|
|
44ce1d |
+ | m_TREMONT | m_ALDERLAKE | m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_FUSE_CMP_AND_BRANCH_32: Fuse compare with a subsequent
|
|
|
44ce1d |
conditional jump instruction for 32 bit TARGET. */
|
|
|
44ce1d |
@@ -166,14 +166,14 @@ DEF_TUNE (X86_TUNE_EPILOGUE_USING_MOVE, "epilogue_using_move",
|
|
|
44ce1d |
/* X86_TUNE_USE_LEAVE: Use "leave" instruction in epilogues where it fits. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_USE_LEAVE, "use_leave",
|
|
|
44ce1d |
m_386 | m_CORE_ALL | m_K6_GEODE | m_AMD_MULTIPLE | m_TREMONT
|
|
|
44ce1d |
- | m_GENERIC)
|
|
|
44ce1d |
+ | m_ALDERLAKE | m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_PUSH_MEMORY: Enable generation of "push mem" instructions.
|
|
|
44ce1d |
Some chips, like 486 and Pentium works faster with separate load
|
|
|
44ce1d |
and push instructions. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_PUSH_MEMORY, "push_memory",
|
|
|
44ce1d |
m_386 | m_P4_NOCONA | m_CORE_ALL | m_K6_GEODE | m_AMD_MULTIPLE
|
|
|
44ce1d |
- | m_TREMONT | m_GENERIC)
|
|
|
44ce1d |
+ | m_TREMONT | m_ALDERLAKE | m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_SINGLE_PUSH: Enable if single push insn is preferred
|
|
|
44ce1d |
over esp subtraction. */
|
|
|
44ce1d |
@@ -243,14 +243,14 @@ DEF_TUNE (X86_TUNE_READ_MODIFY, "read_modify", ~(m_PENT | m_LAKEMONT | m_PPRO))
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_USE_INCDEC, "use_incdec",
|
|
|
44ce1d |
~(m_P4_NOCONA | m_CORE2 | m_NEHALEM | m_SANDYBRIDGE
|
|
|
44ce1d |
| m_BONNELL | m_SILVERMONT | m_INTEL | m_KNL | m_KNM | m_GOLDMONT
|
|
|
44ce1d |
- | m_GOLDMONT_PLUS | m_TREMONT | m_GENERIC))
|
|
|
44ce1d |
+ | m_GOLDMONT_PLUS | m_TREMONT | m_ALDERLAKE | m_GENERIC))
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_INTEGER_DFMODE_MOVES: Enable if integer moves are preferred
|
|
|
44ce1d |
for DFmode copies */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_INTEGER_DFMODE_MOVES, "integer_dfmode_moves",
|
|
|
44ce1d |
~(m_PPRO | m_P4_NOCONA | m_CORE_ALL | m_BONNELL | m_SILVERMONT
|
|
|
44ce1d |
| m_KNL | m_KNM | m_INTEL | m_GEODE | m_AMD_MULTIPLE | m_GOLDMONT
|
|
|
44ce1d |
- | m_GOLDMONT_PLUS | m_TREMONT | m_GENERIC))
|
|
|
44ce1d |
+ | m_GOLDMONT_PLUS | m_TREMONT | m_ALDERLAKE | m_GENERIC))
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_OPT_AGU: Optimize for Address Generation Unit. This flag
|
|
|
44ce1d |
will impact LEA instruction selection. */
|
|
|
44ce1d |
@@ -298,14 +298,14 @@ DEF_TUNE (X86_TUNE_PREFER_KNOWN_REP_MOVSB_STOSB,
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_MISALIGNED_MOVE_STRING_PRO_EPILOGUES,
|
|
|
44ce1d |
"misaligned_move_string_pro_epilogues",
|
|
|
44ce1d |
m_386 | m_486 | m_CORE_ALL | m_AMD_MULTIPLE | m_TREMONT
|
|
|
44ce1d |
- | m_GENERIC)
|
|
|
44ce1d |
+ | m_ALDERLAKE |m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_USE_SAHF: Controls use of SAHF. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_USE_SAHF, "use_sahf",
|
|
|
44ce1d |
m_PPRO | m_P4_NOCONA | m_CORE_ALL | m_BONNELL | m_SILVERMONT
|
|
|
44ce1d |
| m_KNL | m_KNM | m_INTEL | m_K6_GEODE | m_K8 | m_AMDFAM10 | m_BDVER
|
|
|
44ce1d |
| m_BTVER | m_ZNVER | m_GOLDMONT | m_GOLDMONT_PLUS | m_TREMONT
|
|
|
44ce1d |
- | m_GENERIC)
|
|
|
44ce1d |
+ | m_ALDERLAKE | m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_USE_CLTD: Controls use of CLTD and CTQO instructions. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_USE_CLTD, "use_cltd",
|
|
|
44ce1d |
@@ -316,12 +316,12 @@ DEF_TUNE (X86_TUNE_USE_CLTD, "use_cltd",
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_USE_BT, "use_bt",
|
|
|
44ce1d |
m_CORE_ALL | m_BONNELL | m_SILVERMONT | m_KNL | m_KNM | m_INTEL
|
|
|
44ce1d |
| m_LAKEMONT | m_AMD_MULTIPLE | m_GOLDMONT | m_GOLDMONT_PLUS
|
|
|
44ce1d |
- | m_TREMONT | m_GENERIC)
|
|
|
44ce1d |
+ | m_TREMONT | m_ALDERLAKE | m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_AVOID_FALSE_DEP_FOR_BMI: Avoid false dependency
|
|
|
44ce1d |
for bit-manipulation instructions. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI, "avoid_false_dep_for_bmi",
|
|
|
44ce1d |
- m_SANDYBRIDGE | m_CORE_AVX2 | m_TREMONT | m_GENERIC)
|
|
|
44ce1d |
+ m_SANDYBRIDGE | m_CORE_AVX2 | m_TREMONT | m_ALDERLAKE | m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_ADJUST_UNROLL: This enables adjusting the unroll factor based
|
|
|
44ce1d |
on hardware capabilities. Bdver3 hardware has a loop buffer which makes
|
|
|
44ce1d |
@@ -333,11 +333,11 @@ DEF_TUNE (X86_TUNE_ADJUST_UNROLL, "adjust_unroll_factor", m_BDVER3 | m_BDVER4)
|
|
|
44ce1d |
if-converted sequence to one. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_ONE_IF_CONV_INSN, "one_if_conv_insn",
|
|
|
44ce1d |
m_SILVERMONT | m_KNL | m_KNM | m_INTEL | m_CORE_ALL | m_GOLDMONT
|
|
|
44ce1d |
- | m_GOLDMONT_PLUS | m_TREMONT | m_GENERIC)
|
|
|
44ce1d |
+ | m_GOLDMONT_PLUS | m_TREMONT | m_ALDERLAKE | m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_AVOID_MFENCE: Use lock prefixed instructions instead of mfence. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_AVOID_MFENCE, "avoid_mfence",
|
|
|
44ce1d |
- m_CORE_ALL | m_BDVER | m_ZNVER | m_TREMONT | m_GENERIC)
|
|
|
44ce1d |
+ m_CORE_ALL | m_BDVER | m_ZNVER | m_TREMONT | m_ALDERLAKE | m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_EXPAND_ABS: This enables a new abs pattern by
|
|
|
44ce1d |
generating instructions for abs (x) = (((signed) x >> (W-1) ^ x) -
|
|
|
44ce1d |
@@ -361,7 +361,8 @@ DEF_TUNE (X86_TUNE_USE_HIMODE_FIOP, "use_himode_fiop",
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_USE_SIMODE_FIOP, "use_simode_fiop",
|
|
|
44ce1d |
~(m_PENT | m_LAKEMONT | m_PPRO | m_CORE_ALL | m_BONNELL
|
|
|
44ce1d |
| m_SILVERMONT | m_KNL | m_KNM | m_INTEL | m_AMD_MULTIPLE
|
|
|
44ce1d |
- | m_GOLDMONT | m_GOLDMONT_PLUS | m_TREMONT | m_GENERIC))
|
|
|
44ce1d |
+ | m_GOLDMONT | m_GOLDMONT_PLUS | m_TREMONT | m_ALDERLAKE
|
|
|
44ce1d |
+ | m_GENERIC))
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_USE_FFREEP: Use freep instruction instead of fstp. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_USE_FFREEP, "use_ffreep", m_AMD_MULTIPLE)
|
|
|
44ce1d |
@@ -370,7 +371,7 @@ DEF_TUNE (X86_TUNE_USE_FFREEP, "use_ffreep", m_AMD_MULTIPLE)
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_EXT_80387_CONSTANTS, "ext_80387_constants",
|
|
|
44ce1d |
m_PPRO | m_P4_NOCONA | m_CORE_ALL | m_BONNELL | m_SILVERMONT
|
|
|
44ce1d |
| m_KNL | m_KNM | m_INTEL | m_K6_GEODE | m_ATHLON_K8 | m_GOLDMONT
|
|
|
44ce1d |
- | m_GOLDMONT_PLUS | m_TREMONT | m_GENERIC)
|
|
|
44ce1d |
+ | m_GOLDMONT_PLUS | m_TREMONT | m_ALDERLAKE | m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/*****************************************************************************/
|
|
|
44ce1d |
/* SSE instruction selection tuning */
|
|
|
44ce1d |
@@ -385,15 +386,15 @@ DEF_TUNE (X86_TUNE_GENERAL_REGS_SSE_SPILL, "general_regs_sse_spill",
|
|
|
44ce1d |
of a sequence loading registers by parts. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_SSE_UNALIGNED_LOAD_OPTIMAL, "sse_unaligned_load_optimal",
|
|
|
44ce1d |
m_NEHALEM | m_SANDYBRIDGE | m_CORE_AVX2 | m_SILVERMONT | m_KNL | m_KNM
|
|
|
44ce1d |
- | m_INTEL | m_GOLDMONT | m_GOLDMONT_PLUS
|
|
|
44ce1d |
- | m_TREMONT | m_AMDFAM10 | m_BDVER | m_BTVER | m_ZNVER | m_GENERIC)
|
|
|
44ce1d |
+ | m_INTEL | m_GOLDMONT | m_GOLDMONT_PLUS | m_TREMONT | m_ALDERLAKE
|
|
|
44ce1d |
+ | m_AMDFAM10 | m_BDVER | m_BTVER | m_ZNVER | m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL: Use movups for misaligned stores
|
|
|
44ce1d |
instead of a sequence loading registers by parts. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_SSE_UNALIGNED_STORE_OPTIMAL, "sse_unaligned_store_optimal",
|
|
|
44ce1d |
m_NEHALEM | m_SANDYBRIDGE | m_CORE_AVX2 | m_SILVERMONT | m_KNL | m_KNM
|
|
|
44ce1d |
| m_INTEL | m_GOLDMONT | m_GOLDMONT_PLUS
|
|
|
44ce1d |
- | m_TREMONT | m_BDVER | m_ZNVER | m_GENERIC)
|
|
|
44ce1d |
+ | m_TREMONT | m_ALDERLAKE | m_BDVER | m_ZNVER | m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_SSE_PACKED_SINGLE_INSN_OPTIMAL: Use packed single
|
|
|
44ce1d |
precision 128bit instructions instead of double where possible. */
|
|
|
44ce1d |
@@ -402,13 +403,13 @@ DEF_TUNE (X86_TUNE_SSE_PACKED_SINGLE_INSN_OPTIMAL, "sse_packed_single_insn_optim
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_SSE_TYPELESS_STORES: Always movaps/movups for 128bit stores. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_SSE_TYPELESS_STORES, "sse_typeless_stores",
|
|
|
44ce1d |
- m_AMD_MULTIPLE | m_CORE_ALL | m_TREMONT | m_GENERIC)
|
|
|
44ce1d |
+ m_AMD_MULTIPLE | m_CORE_ALL | m_TREMONT | m_ALDERLAKE | m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_SSE_LOAD0_BY_PXOR: Always use pxor to load0 as opposed to
|
|
|
44ce1d |
xorps/xorpd and other variants. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_SSE_LOAD0_BY_PXOR, "sse_load0_by_pxor",
|
|
|
44ce1d |
m_PPRO | m_P4_NOCONA | m_CORE_ALL | m_BDVER | m_BTVER | m_ZNVER
|
|
|
44ce1d |
- | m_TREMONT | m_GENERIC)
|
|
|
44ce1d |
+ | m_TREMONT | m_ALDERLAKE | m_GENERIC)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_INTER_UNIT_MOVES_TO_VEC: Enable moves in from integer
|
|
|
44ce1d |
to SSE registers. If disabled, the moves will be done by storing
|
|
|
44ce1d |
@@ -454,11 +455,12 @@ DEF_TUNE (X86_TUNE_SLOW_PSHUFB, "slow_pshufb",
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_AVOID_4BYTE_PREFIXES: Avoid instructions requiring 4+ bytes of prefixes. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_AVOID_4BYTE_PREFIXES, "avoid_4byte_prefixes",
|
|
|
44ce1d |
- m_SILVERMONT | m_GOLDMONT | m_GOLDMONT_PLUS | m_TREMONT | m_INTEL)
|
|
|
44ce1d |
+ m_SILVERMONT | m_GOLDMONT | m_GOLDMONT_PLUS | m_TREMONT | m_ALDERLAKE
|
|
|
44ce1d |
+ | m_INTEL)
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_USE_GATHER: Use gather instructions. */
|
|
|
44ce1d |
DEF_TUNE (X86_TUNE_USE_GATHER, "use_gather",
|
|
|
44ce1d |
- ~(m_ZNVER1 | m_ZNVER2 | m_GENERIC))
|
|
|
44ce1d |
+ ~(m_ZNVER1 | m_ZNVER2 | m_GENERIC | m_ALDERLAKE))
|
|
|
44ce1d |
|
|
|
44ce1d |
/* X86_TUNE_AVOID_128FMA_CHAINS: Avoid creating loops with tight 128bit or
|
|
|
44ce1d |
smaller FMA chain. */
|
|
|
44ce1d |
--
|
|
|
44ce1d |
2.17.1
|
|
|
44ce1d |
|