aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorChristopher Tetreault <ctetreau@quicinc.com>2020-06-23 12:47:37 -0700
committerChristopher Tetreault <ctetreau@quicinc.com>2020-06-23 13:21:40 -0700
commite6d8636935e13f57b52c7dcf81f5c4576e2446f5 (patch)
tree7d3b51119ee99815d2aa9fabefb05ba582de258e /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent52e86797ba687d89a2e9a85c135b7145a5f14739 (diff)
downloadllvm-e6d8636935e13f57b52c7dcf81f5c4576e2446f5.zip
llvm-e6d8636935e13f57b52c7dcf81f5c4576e2446f5.tar.gz
llvm-e6d8636935e13f57b52c7dcf81f5c4576e2446f5.tar.bz2
[SVE] Remove calls to VectorType::getNumElements from Bitcode
Reviewers: efriedma, evgeny777, tejohnson, david-arm, kmclaughlin Reviewed By: david-arm Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D82209
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
index 653d7f9..e9cf5af 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+++ b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
@@ -961,7 +961,7 @@ void ModuleBitcodeWriter::writeTypeTable() {
// VECTOR [numelts, eltty] or
// [numelts, eltty, scalable]
Code = bitc::TYPE_CODE_VECTOR;
- TypeVals.push_back(VT->getNumElements());
+ TypeVals.push_back(VT->getElementCount().Min);
TypeVals.push_back(VE.getTypeID(VT->getElementType()));
if (isa<ScalableVectorType>(VT))
TypeVals.push_back(true);