[PATCH] D83197: [CodeGen] Fix warning in DAGTypeLegalizer::SplitVecRes_ExtendOp
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 8 01:57:57 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9e66e9c30a19: [CodeGen] Fix wrong use of getVectorNumElements() in DAGTypeLegalizer… (authored by david-arm).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83197/new/
https://reviews.llvm.org/D83197
Files:
llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
===================================================================
--- llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
@@ -1778,8 +1778,7 @@
// more effectively move in the right direction and prevent falling down
// to scalarization in many cases due to the input vector being split too
// far.
- unsigned NumElements = SrcVT.getVectorNumElements();
- if ((NumElements & 1) == 0 &&
+ if ((SrcVT.getVectorMinNumElements() & 1) == 0 &&
SrcVT.getSizeInBits() * 2 < DestVT.getSizeInBits()) {
LLVMContext &Ctx = *DAG.getContext();
EVT NewSrcVT = SrcVT.widenIntegerVectorElementType(Ctx);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83197.276342.patch
Type: text/x-patch
Size: 739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200708/910159a7/attachment.bin>
More information about the llvm-commits
mailing list