[PATCH] D83197: [CodeGen] Fix warning in DAGTypeLegalizer::SplitVecRes_ExtendOp
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 6 23:54:32 PDT 2020
david-arm updated this revision to Diff 275922.
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
@@ -1767,8 +1767,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.275922.patch
Type: text/x-patch
Size: 739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200707/c0107bd6/attachment.bin>
More information about the llvm-commits
mailing list