[llvm] [SelectionDAG] Expand CTTZ_ELTS[_ZERO_POISON] and handle legalization (PR #188691)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 30 04:08:59 PDT 2026
================
@@ -10115,22 +10115,24 @@ SDValue TargetLowering::expandVPCTTZElements(SDNode *N,
return DAG.getNode(ISD::VP_REDUCE_UMIN, DL, ResVT, ExtEVL, Select, Mask, EVL);
}
-SDValue TargetLowering::expandVectorFindLastActive(SDNode *N,
- SelectionDAG &DAG) const {
- SDLoc DL(N);
- SDValue Mask = N->getOperand(0);
+/// Returns a step vector that's guaranteed to fit the number of elements in \p
+/// Mask, as well as a type-legalized version of \p Mask.
+static std::pair<SDValue, SDValue> getLegalStepVector(SDValue Mask,
----------------
lukel97 wrote:
Agreed, done in d6670497f98b1d09a15399e4a4752c89d718f1af
https://github.com/llvm/llvm-project/pull/188691
More information about the llvm-commits
mailing list