[PATCH] D83196: [CodeGen] Fix a warning in DAGTypeLegalizer::SetSplitVector
David Sherwood via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 10 00:29:36 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rGda731894a2fe: [CodeGen] Replace calls to getVectorNumElements() in DAGTypeLegalizer… (authored by david-arm).
Repository:
rG LLVM Github Monorepo
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.276935.patch
Type: text/x-patch
Size: 929 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200710/b212ad29/attachment.bin>
More information about the llvm-commits
mailing list