[llvm] [SelectionDAG] Preserve CTTZ_ELTS lane count during expansion (PR #217982)
Oscar Priego via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 22 08:37:01 PDT 2026
================
@@ -13859,6 +13859,8 @@ SDValue TargetLowering::expandVECTOR_COMPRESS(SDNode *Node,
SDValue TargetLowering::expandCttzElts(SDNode *Node, SelectionDAG &DAG) const {
SDLoc DL(Node);
EVT VT = Node->getValueType(0);
+ ElementCount EC =
+ Node->getOperand(0).getValueType().getVectorElementCount();
----------------
Opriego wrote:
Addressed, thanks.
https://github.com/llvm/llvm-project/pull/217982
More information about the llvm-commits
mailing list