[PATCH] D83196: [CodeGen] Fix a warning in DAGTypeLegalizer::SetSplitVector
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 7 00:02:50 PDT 2020
david-arm updated this revision to Diff 275926.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83196/new/
https://reviews.llvm.org/D83196
Files:
llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
===================================================================
--- llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp
@@ -835,9 +835,9 @@
void DAGTypeLegalizer::SetSplitVector(SDValue Op, SDValue Lo,
SDValue Hi) {
assert(Lo.getValueType().getVectorElementType() ==
- Op.getValueType().getVectorElementType() &&
- 2*Lo.getValueType().getVectorNumElements() ==
- Op.getValueType().getVectorNumElements() &&
+ Op.getValueType().getVectorElementType() &&
+ Lo.getValueType().getVectorElementCount() * 2 ==
+ Op.getValueType().getVectorElementCount() &&
Hi.getValueType() == Lo.getValueType() &&
"Invalid type for split vector");
// Lo/Hi may have been newly allocated, if so, add nodeid's as relevant.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83196.275926.patch
Type: text/x-patch
Size: 929 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200707/d42d494d/attachment.bin>
More information about the llvm-commits
mailing list