[llvm] [AArch64][SVE2] Generate SVE2 BSL instruction in LLVM for add/sub. (PR #88413)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 17 02:58:04 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()))
----------------
david-arm wrote:
Isn't the second call identical to the first? I think you only need one.
https://github.com/llvm/llvm-project/pull/88413
More information about the llvm-commits
mailing list