[llvm] [SelectionDAG] Add an ISD node for for get.active.lane.mask (PR #139084)

Kerry McLaughlin via llvm-commits llvm-commits at lists.llvm.org
Wed May 14 04:05:08 PDT 2025


================
@@ -5731,21 +5739,24 @@ static inline SDValue getPTrue(SelectionDAG &DAG, SDLoc DL, EVT VT,
                      DAG.getTargetConstant(Pattern, DL, MVT::i32));
 }
 
-static SDValue optimizeIncrementingWhile(SDValue Op, SelectionDAG &DAG,
+static SDValue optimizeIncrementingWhile(SDNode *N, SelectionDAG &DAG,
----------------
kmclaughlin-arm wrote:

I've moved the `isBeforeLegalize` check to before where `optimizeIncrementingWhile` is called from `performActiveLaneMaskCombine`.

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


More information about the llvm-commits mailing list