[llvm] [CSKY] Remove duplicate processor features in ck807e/ck807ef (PR #138316)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Fri May 2 11:02:35 PDT 2025


https://github.com/mshockwave created https://github.com/llvm/llvm-project/pull/138316

The new TableGen warning introduced in 951292b shows the following warnings:

```
warning: Processor ck807e contains duplicate feature 'edsp'
warning: Processor ck807e contains duplicate feature 'dsp1e2'
warning: Processor ck807e contains duplicate feature 'dspe60'
warning: Processor ck807ef contains duplicate feature 'edsp'
warning: Processor ck807ef contains duplicate feature 'dsp1e2'
warning: Processor ck807ef contains duplicate feature 'dspe60'
```

>From 9b19a5b130386964ac2b3a710cb9ee38a61870f1 Mon Sep 17 00:00:00 2001
From: Min-Yih Hsu <min.hsu at sifive.com>
Date: Fri, 2 May 2025 10:59:39 -0700
Subject: [PATCH] [CSKY] Remove duplicate processor features in ck807e/ck807ef

The new TableGen warning introduced in 951292b shows the following
warnings:

```
warning: Processor ck807e contains duplicate feature 'edsp'
warning: Processor ck807e contains duplicate feature 'dsp1e2'
warning: Processor ck807e contains duplicate feature 'dspe60'
warning: Processor ck807ef contains duplicate feature 'edsp'
warning: Processor ck807ef contains duplicate feature 'dsp1e2'
warning: Processor ck807ef contains duplicate feature 'dspe60'
```
---
 llvm/lib/Target/CSKY/CSKY.td | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/llvm/lib/Target/CSKY/CSKY.td b/llvm/lib/Target/CSKY/CSKY.td
index f88daeed8d421..b5df93a9d464c 100644
--- a/llvm/lib/Target/CSKY/CSKY.td
+++ b/llvm/lib/Target/CSKY/CSKY.td
@@ -568,7 +568,7 @@ class CK807<string n, SchedMachineModel m, list<SubtargetFeature> f,
 def : CK807<"ck807", NoSchedModel, []>;
 def : CK807<"c807", NoSchedModel, []>;
 def : CK807<"r807", NoSchedModel, []>;
-def : CK807<"ck807e", NoSchedModel, [FeatureDSP, HasDSP1E2, HasDSPE60]>;
+def : CK807<"ck807e", NoSchedModel, []>;
 def : CK807<"ck807f", NoSchedModel,
             [FeatureFPUV2_SF, FeatureFPUV2_DF, FeatureFdivdu,
              HasFLOATE1, HasFLOAT1E2, HasFLOAT1E3, HasFLOAT3E4]>;
@@ -579,7 +579,7 @@ def : CK807<"r807f", NoSchedModel,
             [FeatureFPUV2_SF, FeatureFPUV2_DF, FeatureFdivdu,
              HasFLOATE1, HasFLOAT1E2, HasFLOAT1E3, HasFLOAT3E4]>;
 def : CK807<"ck807ef", NoSchedModel, [
-  FeatureDSP, HasDSP1E2, HasDSPE60, FeatureFPUV2_SF, FeatureFPUV2_DF,
+  FeatureFPUV2_SF, FeatureFPUV2_DF,
   FeatureFdivdu, HasFLOATE1, HasFLOAT1E2, HasFLOAT1E3, HasFLOAT3E4]>;
 
 // CK810 series



More information about the llvm-commits mailing list