[llvm] Port `NVPTXTargetLowering::LowerCONCAT_VECTORS` to SelectionDAG (PR #120030)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 21 16:54:19 PST 2025


================
@@ -3371,7 +3393,11 @@ bool SelectionDAGLegalize::ExpandNode(SDNode *Node) {
     Results.push_back(ExpandInsertToVectorThroughStack(SDValue(Node, 0)));
     break;
   case ISD::CONCAT_VECTORS:
-    Results.push_back(ExpandVectorBuildThroughStack(Node));
+    if (!TLI.isOperationExpand(ISD::EXTRACT_VECTOR_ELT, Node->getOperand(0).getValueType())) {
----------------
arsenm wrote:

Might need a guard against scalable vectors 

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


More information about the llvm-commits mailing list