[clang] [llvm] [X86] Replace X86 specific PDEP/PEXT handling with generic intrinsics (PR #204144)

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 18 09:32:10 PDT 2026


================
@@ -6930,6 +6930,20 @@ Value *llvm::simplifyBinaryIntrinsic(Intrinsic::ID IID, Type *ReturnType,
       return Constant::getNullValue(ReturnType);
     break;
   }
+  case Intrinsic::pdep: {
+    if (match(Op1, m_Zero()))
----------------
RKSimon wrote:

Yes - I'll add some additional tests in a followup

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


More information about the cfe-commits mailing list