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

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 19 10:14:16 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">;
----------------
s-barannikov wrote:

Should it instead add AssemblerPredicate to make sure the instructions are not assembled/disassembled without the feature enabled?

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


More information about the llvm-commits mailing list