]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
i386: Set SRF, GRR, CWF, GNR, DMR, ARL and PTL issue rate
authorHu, Lin1 <lin1.hu@intel.com>
Wed, 14 May 2025 03:36:26 +0000 (11:36 +0800)
committerHu, Lin1 <lin1.hu@intel.com>
Thu, 12 Jun 2025 07:04:20 +0000 (15:04 +0800)
Hi,

This patch aims to set SRF issue rate to 4, GNR issue rate to 6. According to
tests about spec2017, the patch has little effect on performance.

For GRR, CWF, DMR, ARL and PTL, the patch set their issue rate to 6. Waiting for
more information to update.

Bootstrapped and regtested on x86_64-linux-pc-gnu, OK for trunk.

BRs,
Lin

gcc/ChangeLog:

* config/i386/x86-tune-sched.cc (ix86_issue_rate): Set 4 for SRF,
6 for GRR, GNR, CWF, DMR, ARL, PTL.

gcc/config/i386/x86-tune-sched.cc

index 15d3d91a83b63e26d81fd7ef01c001454f18e97d..61b1a2686ad24e378bb4a25ffb0cfc6c9b333cc2 100644 (file)
@@ -80,6 +80,7 @@ ix86_issue_rate (void)
     case PROCESSOR_ALDERLAKE:
     case PROCESSOR_YONGFENG:
     case PROCESSOR_SHIJIDADAO:
+    case PROCESSOR_SIERRAFOREST:
     case PROCESSOR_GENERIC:
     /* For znver5 decoder can handle 4 or 8 instructions per cycle,
        op cache 12 instruction/cycle, dispatch 8 instructions
@@ -99,6 +100,14 @@ ix86_issue_rate (void)
       return 5;
 
     case PROCESSOR_SAPPHIRERAPIDS:
+    case PROCESSOR_GRANITERAPIDS:
+    case PROCESSOR_GRANITERAPIDS_D:
+    case PROCESSOR_DIAMONDRAPIDS:
+    case PROCESSOR_GRANDRIDGE:
+    case PROCESSOR_CLEARWATERFOREST:
+    case PROCESSOR_ARROWLAKE:
+    case PROCESSOR_ARROWLAKE_S:
+    case PROCESSOR_PANTHERLAKE:
       return 6;
 
     default: