Skip to content

Commit 21711f8

Browse files
committed
[LegalizeVectorOps] Move VP_STORE legalization from LegalizeDAG to LegalizeVectorOps.
705636a moved reductions from LegalizeVectorOps to LegalizeDAG, but the way it was done inadvertently moved stores from LegalizeVectorOps to LegalizeDAG too. This was not intended or desired. Found when this was pulled into my downstream which has other changes that make the distinction important.
1 parent 3ac6a64 commit 21711f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,8 @@ SDValue VectorLegalizer::LegalizeOp(SDValue Op) {
507507
break; \
508508
} \
509509
/* Defer non-vector results to LegalizeDAG. */ \
510-
if (!Node->getValueType(0).isVector()) { \
510+
if (!Node->getValueType(0).isVector() && \
511+
Node->getValueType(0) != MVT::Other) { \
511512
Action = TargetLowering::Legal; \
512513
break; \
513514
} \

0 commit comments

Comments
 (0)