]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Disable avoid_false_dep_for_bmi for atom and icelake(and later) core processors.
authorliuhongt <hongtao.liu@intel.com>
Mon, 22 May 2023 02:41:50 +0000 (10:41 +0800)
committerliuhongt <hongtao.liu@intel.com>
Sat, 27 May 2023 09:21:40 +0000 (17:21 +0800)
lzcnt/tzcnt has been fixed since skylake, popcnt has been fixed since
icelake. At least for icelake and later intel Core processors, the
errata tune is not needed. And the tune isn't need for ATOM either.

gcc/ChangeLog:

* config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
Remove ATOM and ICELAKE(and later) core processors.

gcc/config/i386/x86-tune.def

index 9d603cc84e4414eebc60d1a12d786dac0f679124..e1c72cddf1fb04d7a97b6cdc6a38897f3d678d54 100644 (file)
@@ -335,7 +335,8 @@ DEF_TUNE (X86_TUNE_USE_BT, "use_bt",
 /* X86_TUNE_AVOID_FALSE_DEP_FOR_BMI: Avoid false dependency
    for bit-manipulation instructions.  */
 DEF_TUNE (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI, "avoid_false_dep_for_bmi",
-         m_SANDYBRIDGE | m_CORE_AVX2 | m_TREMONT | m_ALDERLAKE | m_CORE_ATOM
+         m_SANDYBRIDGE | m_HASWELL | m_SKYLAKE | m_SKYLAKE_AVX512
+         | m_CANNONLAKE | m_CASCADELAKE | m_COOPERLAKE
          | m_LUJIAZUI | m_GENERIC)
 
 /* X86_TUNE_ADJUST_UNROLL: This enables adjusting the unroll factor based