-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[PowerPC] clean unused PPC target feature FeatureBPERMD #159782
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
[PowerPC] clean unused PPC target feature FeatureBPERMD #159782
Conversation
|
@llvm/pr-subscribers-backend-powerpc Author: zhijian lin (diggerlin) Changesclean unused PPC target feature FeatureBPERMD. Full diff: https://github.com/llvm/llvm-project/pull/159782.diff 1 Files Affected:
diff --git a/llvm/lib/Target/PowerPC/PPC.td b/llvm/lib/Target/PowerPC/PPC.td
index 386d0f65d1ed1..327ca192b1c5b 100644
--- a/llvm/lib/Target/PowerPC/PPC.td
+++ b/llvm/lib/Target/PowerPC/PPC.td
@@ -129,8 +129,6 @@ def FeatureFPCVT : SubtargetFeature<"fpcvt", "HasFPCVT", "true",
[FeatureFPU]>;
def FeatureISEL : SubtargetFeature<"isel","HasISEL", "true",
"Enable the isel instruction">;
-def FeatureBPERMD : SubtargetFeature<"bpermd", "HasBPERMD", "true",
- "Enable the bpermd instruction">;
def FeatureExtDiv : SubtargetFeature<"extdiv", "HasExtDiv", "true",
"Enable extended divide instructions">;
def FeatureLDBRX : SubtargetFeature<"ldbrx","HasLDBRX", "true",
@@ -377,7 +375,7 @@ def NoNaNsFPMath
: Predicate<"Subtarget->getTargetMachine().Options.NoNaNsFPMath">;
def NaNsFPMath
: Predicate<"!Subtarget->getTargetMachine().Options.NoNaNsFPMath">;
-def HasBPERMD : Predicate<"Subtarget->hasBPERMD()">;
+def HasBPERMD : Predicate<"Subtarget->getCPUDirective() >= PPC::DIR_PWR7">;
def HasExtDiv : Predicate<"Subtarget->hasExtDiv()">;
def IsISA2_06 : Predicate<"Subtarget->isISA2_06()">;
def IsISA2_07 : Predicate<"Subtarget->isISA2_07()">;
@@ -436,7 +434,6 @@ def ProcessorFeatures {
FeatureLDBRX,
Feature64BitSupport,
/* Feature64BitRegs, */
- FeatureBPERMD,
FeatureExtDiv,
FeatureMFTB,
DeprecatedDST,
|
| def NaNsFPMath | ||
| : Predicate<"!Subtarget->getTargetMachine().Options.NoNaNsFPMath">; | ||
| def HasBPERMD : Predicate<"Subtarget->hasBPERMD()">; | ||
| def HasBPERMD : Predicate<"Subtarget->getCPUDirective() >= PPC::DIR_PWR7">; |
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.
Should it instead add AssemblerPredicate to make sure the instructions are not assembled/disassembled without the feature enabled?
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.
since the HasBPERMD defined in
def FeatureBPERMD : SubtargetFeature<"bpermd", "HasBPERMD", "true",
"Enable the bpermd instruction">;
is not used in the llvm source code. we can delete it. the patch only clean FeatureBPERMD, which is NFC patch. Adding AssemblerPredicate change the purpose of the patch(not a NFC). if we want to add it , I can create a separate patch for it?
|
Is this check-clang failure http://45.33.8.238/linux/178016/step_6.txt due to this? |
|
It broke the CI as well. |
Or did it not? The checks were red and became green after updating a branch, but the merge update didn't trigger all checks |
)" This reverts commit 2e34188.
|
@boomanaiden154 I believe the picture you posted shows checks that were executed after the PR was merged. |
…PERMD" (#159837) Reverts llvm/llvm-project#159782 The PR breaks multiple build bots and CI as well.
|
Then I'm confused. What are those skipped checks near the merge commit that I posted above? Is that just github showing them incorrectly (very weird)? |
|
OK I think I understood. There were three CI runs:
This helped clarify what happened. It indeed looks like the PR was merged with CI checks red. |
…m#159837) Reverts llvm#159782 The PR breaks multiple build bots and CI as well.



clean unused PPC target feature FeatureBPERMD.