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

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 27 07:49:58 PDT 2026


================
@@ -310,23 +310,23 @@ define void @fshl(i32 %a, i32 %b, i32 %c, <16 x i32> %va, <16 x i32> %vb, <16 x
 
 define void @pdep(i32 %a, i32 %b, <16 x i32> %va, <16 x i32> %vb) {
 ; THRU-LABEL: 'pdep'
-; THRU-NEXT:  Cost Model: Found an estimated cost of 1 for instruction: %s = call i32 @llvm.pdep.i32(i32 %a, i32 %b)
-; THRU-NEXT:  Cost Model: Found an estimated cost of 100 for instruction: %v = call <16 x i32> @llvm.pdep.v16i32(<16 x i32> %va, <16 x i32> %vb)
+; THRU-NEXT:  Cost Model: Found an estimated cost of 252 for instruction: %s = call i32 @llvm.pdep.i32(i32 %a, i32 %b)
----------------
RKSimon wrote:

+bmi2

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


More information about the llvm-commits mailing list