Skip to content

Commit

Permalink
[LegalizeTypes][VP] Fix OpNo in WidenVecOp_VP_SCATTER
Browse files Browse the repository at this point in the history
Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D126276
  • Loading branch information
Lian Wang authored and Lian Wang committed May 24, 2022
1 parent 08c9fb8 commit be84f91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
Expand Up @@ -5945,7 +5945,7 @@ SDValue DAGTypeLegalizer::WidenVecOp_VP_SCATTER(SDNode *N, unsigned OpNo) {
Mask = GetWidenedMask(Mask, WideEC);
WideMemVT = EVT::getVectorVT(*DAG.getContext(),
VPSC->getMemoryVT().getScalarType(), WideEC);
} else if (OpNo == 4) {
} else if (OpNo == 3) {
// Just widen the index. It's allowed to have extra elements.
Index = GetWidenedVector(Index);
} else
Expand Down

0 comments on commit be84f91

Please sign in to comment.