[llvm] [AArch64][CostModel] Add cost model for pdep/pext instructions (PR #207657)

Yashwant Singh via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 8 00:14:04 PDT 2026


================
@@ -863,6 +863,29 @@ AArch64TTIImpl::getIntrinsicInstrCost(const IntrinsicCostAttributes &ICA,
     }
     break;
   }
+  case Intrinsic::pdep:
+  case Intrinsic::pext: {
+    unsigned BW = RetTy->getScalarSizeInBits();
+    if (ST->isSVEBitPermAvailable() && BW <= 64) {
+      Type *VecTy = VectorType::get(RetTy, 64 / BW, false);
----------------
yashssh wrote:

Fixed

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


More information about the llvm-commits mailing list