[llvm] [AArch64] Move BSL generation to lowering. (PR #151855)

Ricardo Jesus via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 5 04:45:23 PDT 2025


================
@@ -14737,12 +14737,109 @@ static SDValue tryLowerToSLI(SDNode *N, SelectionDAG &DAG) {
   return ResultSLI;
 }
 
+static SDValue tryLowerToBSL(SDValue N, SelectionDAG &DAG) {
+  EVT VT = N->getValueType(0);
+  SDLoc DL(N);
+  const auto &Subtarget = DAG.getSubtarget<AArch64Subtarget>();
+
+  if (!VT.isVector())
+    return SDValue();
+
+  if (VT.isScalableVector() && !Subtarget.hasSVE2())
----------------
rj-jesus wrote:

(Unrelated to this change, but I believe this could be relaxed to support SME too?)

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


More information about the llvm-commits mailing list