[llvm] [SelectionDAG] Faster generic expansion of llvm.pext and llvm.pdep (PR #227292)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 2 07:14:02 PDT 2026


================
@@ -478,6 +478,27 @@ extractPtrauthBlendDiscriminators(SDValue Disc, SelectionDAG *DAG) {
       AddrDisc);
 }
 
+// Whether scalar PEXT and PDEP map to SVE2 bitperm BEXT and BDEP.
----------------
mightsleep wrote:

Badly named, sry. It's the existing BEXT/BDEP check from the constructor, moved into a helper so the scalar fallback can reuse it. It gates the scalable vectors as well, so "scalar" is wrong there. will rename to hasBEXTAndBDEP.

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


More information about the llvm-commits mailing list