[llvm] [AArch64][SVE2] Generate SVE2 BSL instruction in LLVM for add/sub. (PR #88413)

Dinar Temirbulatov via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 17 14:33:21 PDT 2024


================
@@ -17942,11 +17942,13 @@ static SDValue tryCombineToBSL(SDNode *N, TargetLowering::DAGCombinerInfo &DCI,
       } else
         continue;
 
-      if (!ISD::isBuildVectorAllZeros(Sub.getOperand(0).getNode()))
+      if (!ISD::isConstantSplatVectorAllZeros(Sub.getOperand(0).getNode()) &&
+          !ISD::isConstantSplatVectorAllZeros(Sub.getOperand(0).getNode()))
----------------
dtemirbulatov wrote:

Done.

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


More information about the llvm-commits mailing list