Skip to content

Commit 2e34188

Browse files
authored
[PowerPC] clean unused PPC target feature FeatureBPERMD (#159782)
clean unused PPC target feature FeatureBPERMD.
1 parent 4cace1f commit 2e34188

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

llvm/lib/Target/PowerPC/PPC.td

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ def FeatureFPCVT : SubtargetFeature<"fpcvt", "HasFPCVT", "true",
129129
[FeatureFPU]>;
130130
def FeatureISEL : SubtargetFeature<"isel","HasISEL", "true",
131131
"Enable the isel instruction">;
132-
def FeatureBPERMD : SubtargetFeature<"bpermd", "HasBPERMD", "true",
133-
"Enable the bpermd instruction">;
134132
def FeatureExtDiv : SubtargetFeature<"extdiv", "HasExtDiv", "true",
135133
"Enable extended divide instructions">;
136134
def FeatureLDBRX : SubtargetFeature<"ldbrx","HasLDBRX", "true",
@@ -377,7 +375,7 @@ def NoNaNsFPMath
377375
: Predicate<"Subtarget->getTargetMachine().Options.NoNaNsFPMath">;
378376
def NaNsFPMath
379377
: Predicate<"!Subtarget->getTargetMachine().Options.NoNaNsFPMath">;
380-
def HasBPERMD : Predicate<"Subtarget->hasBPERMD()">;
378+
def HasBPERMD : Predicate<"Subtarget->getCPUDirective() >= PPC::DIR_PWR7">;
381379
def HasExtDiv : Predicate<"Subtarget->hasExtDiv()">;
382380
def IsISA2_06 : Predicate<"Subtarget->isISA2_06()">;
383381
def IsISA2_07 : Predicate<"Subtarget->isISA2_07()">;
@@ -442,7 +440,6 @@ def ProcessorFeatures {
442440
FeatureLDBRX,
443441
Feature64BitSupport,
444442
/* Feature64BitRegs, */
445-
FeatureBPERMD,
446443
FeatureExtDiv,
447444
FeatureMFTB,
448445
DeprecatedDST,

0 commit comments

Comments
 (0)