Skip to content

Commit 21a2b27

Browse files
committed
clean unused PPC target feature FeatureBPERMD
1 parent ba49062 commit 21a2b27

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()">;
@@ -436,7 +434,6 @@ def ProcessorFeatures {
436434
FeatureLDBRX,
437435
Feature64BitSupport,
438436
/* Feature64BitRegs, */
439-
FeatureBPERMD,
440437
FeatureExtDiv,
441438
FeatureMFTB,
442439
DeprecatedDST,

0 commit comments

Comments
 (0)