Skip to content

[PPC][NFC] Remove duplicate processor feature from pwr9/10/11 and future #137903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 2, 2025

Conversation

mshockwave
Copy link
Member

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

warning: Processor future contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr10 contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr11 contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr9 contains duplicate feature 'predictable-select-expensive'

@llvmbot
Copy link
Member

llvmbot commented Apr 30, 2025

@llvm/pr-subscribers-backend-powerpc

Author: Min-Yih Hsu (mshockwave)

Changes

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

warning: Processor future contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr10 contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr11 contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr9 contains duplicate feature 'predictable-select-expensive'

Full diff: https://github.com/llvm/llvm-project/pull/137903.diff

1 Files Affected:

  • (modified) llvm/lib/Target/PowerPC/PPC.td (+1-2)
diff --git a/llvm/lib/Target/PowerPC/PPC.td b/llvm/lib/Target/PowerPC/PPC.td
index 39da428461393..6b058d1a74772 100644
--- a/llvm/lib/Target/PowerPC/PPC.td
+++ b/llvm/lib/Target/PowerPC/PPC.td
@@ -435,8 +435,7 @@ def ProcessorFeatures {
      FeatureP9Vector,
      FeaturePPCPreRASched,
      FeaturePPCPostRASched,
-     FeatureISA3_0,
-     FeaturePredictableSelectIsExpensive
+     FeatureISA3_0
     ];
 
   // Some features are unique to Power9 and there is no reason to assume

@@ -435,8 +435,7 @@ def ProcessorFeatures {
FeatureP9Vector,
FeaturePPCPreRASched,
FeaturePPCPostRASched,
FeatureISA3_0,
FeaturePredictableSelectIsExpensive
FeatureISA3_0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be a bit of a bigger refactor than you're looking to do here, but the AArch64 backend is a much better model for this: ISA features, and Tune features are separated out into parallel lists.

Copy link
Member Author

@mshockwave mshockwave Apr 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree, RISCV is doing that as well. Though I believe doing such separation for PPC is out of the scope of this patch.

Copy link
Contributor

@jayfoad jayfoad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mshockwave mshockwave merged commit 32ca368 into llvm:main May 2, 2025
13 checks passed
@mshockwave mshockwave deleted the patch/ppc/pwr-duplicate-feature branch May 2, 2025 15:54
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
…ure (llvm#137903)

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

```
warning: Processor future contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr10 contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr11 contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr9 contains duplicate feature 'predictable-select-expensive'
```
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
…ure (llvm#137903)

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

```
warning: Processor future contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr10 contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr11 contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr9 contains duplicate feature 'predictable-select-expensive'
```
IanWood1 pushed a commit to IanWood1/llvm-project that referenced this pull request May 6, 2025
…ure (llvm#137903)

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

```
warning: Processor future contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr10 contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr11 contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr9 contains duplicate feature 'predictable-select-expensive'
```
GeorgeARM pushed a commit to GeorgeARM/llvm-project that referenced this pull request May 7, 2025
…ure (llvm#137903)

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

```
warning: Processor future contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr10 contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr11 contains duplicate feature 'predictable-select-expensive'
warning: Processor pwr9 contains duplicate feature 'predictable-select-expensive'
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants