-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[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
[PPC][NFC] Remove duplicate processor feature from pwr9/10/11 and future #137903
Conversation
@llvm/pr-subscribers-backend-powerpc Author: Min-Yih Hsu (mshockwave) ChangesThe new TableGen warning introduced in 951292b shows the following warnings:
Full diff: https://github.com/llvm/llvm-project/pull/137903.diff 1 Files Affected:
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…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' ```
…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' ```
…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' ```
…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' ```
The new TableGen warning introduced in 951292b shows the following warnings: