[llvm] be84f91 - [LegalizeTypes][VP] Fix OpNo in WidenVecOp_VP_SCATTER
Lian Wang via llvm-commits
llvm-commits at lists.llvm.org
Tue May 24 00:38:52 PDT 2022
Author: Lian Wang
Date: 2022-05-24T07:14:46Z
New Revision: be84f91f87a787ebfa8a346e936a5c88bc87b047
URL: https://github.com/llvm/llvm-project/commit/be84f91f87a787ebfa8a346e936a5c88bc87b047
DIFF: https://github.com/llvm/llvm-project/commit/be84f91f87a787ebfa8a346e936a5c88bc87b047.diff
LOG: [LegalizeTypes][VP] Fix OpNo in WidenVecOp_VP_SCATTER
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D126276
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
index 6deba8135b2e4..2a280a86aea1e 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
@@ -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
More information about the llvm-commits
mailing list