[llvm] [AArch64][SVE2p1] Allow more uses of mask in performActiveLaneMaskCombine (PR #159360)

Kerry McLaughlin via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 19 03:50:07 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())
----------------
kmclaughlin-arm wrote:

This was a mistake, it should be `!DCI.isBeforeLegalizeOps()`

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


More information about the llvm-commits mailing list