[llvm] [AArch64][SVE2p1] Allow more uses of mask in performActiveLaneMaskCombine (PR #159360)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 18 08:58:55 PDT 2025
================
@@ -18774,7 +18774,7 @@ static SDValue performVecReduceAddCombineWithUADDLP(SDNode *N,
static SDValue
performActiveLaneMaskCombine(SDNode *N, TargetLowering::DAGCombinerInfo &DCI,
const AArch64Subtarget *ST) {
- if (DCI.isBeforeLegalize())
+ if (DCI.isBeforeLegalize() && !!DCI.isBeforeLegalizeOps())
----------------
david-arm wrote:
nit: The `!!` looks a little odd. Is it possible to just use `DCI.isBeforeLegalizeOps()`?
https://github.com/llvm/llvm-project/pull/159360
More information about the llvm-commits
mailing list