Skip to content

Commit 1c9fa8e

Browse files
committed
scalable vector guard with vector value type
1 parent d95555e commit 1c9fa8e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3397,9 +3397,9 @@ bool SelectionDAGLegalize::ExpandNode(SDNode *Node) {
33973397
Results.push_back(ExpandInsertToVectorThroughStack(SDValue(Node, 0)));
33983398
break;
33993399
case ISD::CONCAT_VECTORS:
3400-
if (Node->getValueType().isScalableVector() ||
3401-
TLI.isOperationExpand(ISD::EXTRACT_VECTOR_ELT,
3402-
Node->getOperand(0).getValueType()))
3400+
if (EVT VectorValueType = Node->getOperand(0).getValueType();
3401+
VectorValueType.isScalableVector() ||
3402+
TLI.isOperationExpand(ISD::EXTRACT_VECTOR_ELT, VectorValueType))
34033403
Results.push_back(ExpandVectorBuildThroughStack(Node));
34043404
else
34053405
Results.push_back(ExpandConcatVectors(Node));

0 commit comments

Comments
 (0)