[llvm] [PowerPC] clean unused PPC target feature FeatureBPERMD (PR #159782)

zhijian lin via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 19 11:16:23 PDT 2025


================
@@ -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">;
----------------
diggerlin wrote:

since the function `HasBPERMD` is not used in the llvm source code. 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,

https://github.com/llvm/llvm-project/pull/159782


More information about the llvm-commits mailing list